Christian Brabandt wrote:

> Bram,
> Charles asked me, if I could extend the vim debugger and add a watch 
> feature, so it would be easier for him to debug netrw issues.
> 
> So here is the patch:
> https://github.com/chrisbra/vim-mq-patches/blob/master/watchexpr
> 
> As far as I know, Charles has already tested it successfully.
> Test suite is run successfully

Thanks, this sounds really useful!

It's not quite clear to me how this works:

:breaka[dd] expr {string}
                Sets a breakpoint, that will break whenever the {string}
                evaluates to true. Example: >
                        :breakadd expr g:lnum

However, g:lnum is always true (non-zero).

Looking at the implementation, it seems that the previous value of
g:lnum is stored and the break happens when the value changes.

Perhaps you can add a few more examples.  I would think it's also very
useful to check the result of any expression.   e.g.:

        breakadd expr &tabstop == 4

Which would break just after 'tabstop' was set to 4 or to another value.
Obviously this would be slow, evaluating the expression very many times,
but manually finding this spot is much slower.

-- 
We are the Borg of GNU GPL.  We will assimilate your source code.
Resistance is futile.

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui