diff options
author | Benji Fisher <benji@FisherFam.org> | 2015-08-30 16:19:50 -0400 |
---|---|---|
committer | Benji Fisher <benji@FisherFam.org> | 2015-08-30 16:19:50 -0400 |
commit | 79c781d7b1786e7f38eaa1ece3426c52935c8727 (patch) | |
tree | 1f31eb2e359b828b5c3d7f51854b12608c3fc8b8 /doc | |
parent | 526773cabaa9ca8d9574c8dc72822c0686bf7c5a (diff) | |
download | vdebug-79c781d7b1786e7f38eaa1ece3426c52935c8727.zip |
Add documentation for :VedebugEval! .
Diffstat (limited to 'doc')
-rw-r--r-- | doc/Vdebug.txt | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/doc/Vdebug.txt b/doc/Vdebug.txt index 8b83573..c5f5132 100644 --- a/doc/Vdebug.txt +++ b/doc/Vdebug.txt @@ -742,19 +742,25 @@ of evaluating expressions: you can either write them yourself the source window. On evaluating an expression, the result is shown in the watch window. To return -back to the context view, press <F11> (default). +back to the context view, press <F11> (default). Use |VdebugTrace| to show the +result in a separate window instead. ------------------------------------------------------------------------------ -4.5.1 Evaluating any expression *VdebugEvalExpression* +4.5.1 Evaluating any expression *:VdebugEval!* *VdebugEvalExpression* To evaluate an expression, use the command :VdebugEval: > :VdebugEval <code> < - -The result is shown on the watch window. E.g: > - :VdebugEval $x + 2 +The result is shown on the watch window. When you run code and the watch +window refreshes, it will show the default view. If you want to re-evaluate +your expression and show the result in the watch window, then use +:VdebugEval!: > + :VdebugEval! $x + 2 +< +To return to the default contents of the watch window, use :VdebugEval! +with no argument: > + :VdebugEval! < - ------------------------------------------------------------------------------ 4.5.2 Evaluating highlighted expressions *VdebugEvalHighlighted* @@ -779,7 +785,8 @@ request for the history: https://github.com/joonty/vdebug/pull/178. If you want to track an expression (any piece of code that can be evaluated) or clearly see how a single variable changes through your code's execution, you can trace it. At each point that the debugger stops in your code the -expression will be re-evaluated and displayed in the trace window. +expression will be re-evaluated and displayed in the trace window. This is +similar to using |:VdebugEval!| but preserves the default watch window. To use this feature, when you're connected to the debugger use the command :VdebugTrace: > |