Skip to content

Commit 79c781d

Browse files
committed
Add documentation for :VedebugEval! .
1 parent 526773c commit 79c781d

1 file changed

Lines changed: 14 additions & 7 deletions

File tree

doc/Vdebug.txt

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -742,19 +742,25 @@ of evaluating expressions: you can either write them yourself
742742
the source window.
743743

744744
On evaluating an expression, the result is shown in the watch window. To return
745-
back to the context view, press <F11> (default).
745+
back to the context view, press <F11> (default). Use |VdebugTrace| to show the
746+
result in a separate window instead.
746747

747748
------------------------------------------------------------------------------
748-
4.5.1 Evaluating any expression *VdebugEvalExpression*
749+
4.5.1 Evaluating any expression *:VdebugEval!* *VdebugEvalExpression*
749750

750751
To evaluate an expression, use the command :VdebugEval: >
751752
:VdebugEval <code>
752753
<
753-
754-
The result is shown on the watch window. E.g: >
755-
:VdebugEval $x + 2
754+
The result is shown on the watch window. When you run code and the watch
755+
window refreshes, it will show the default view. If you want to re-evaluate
756+
your expression and show the result in the watch window, then use
757+
:VdebugEval!: >
758+
:VdebugEval! $x + 2
759+
<
760+
To return to the default contents of the watch window, use :VdebugEval!
761+
with no argument: >
762+
:VdebugEval!
756763
<
757-
758764
------------------------------------------------------------------------------
759765
4.5.2 Evaluating highlighted expressions *VdebugEvalHighlighted*
760766

@@ -779,7 +785,8 @@ request for the history: https://github.com/joonty/vdebug/pull/178.
779785
If you want to track an expression (any piece of code that can be evaluated)
780786
or clearly see how a single variable changes through your code's execution,
781787
you can trace it. At each point that the debugger stops in your code the
782-
expression will be re-evaluated and displayed in the trace window.
788+
expression will be re-evaluated and displayed in the trace window. This is
789+
similar to using |:VdebugEval!| but preserves the default watch window.
783790

784791
To use this feature, when you're connected to the debugger use the command
785792
:VdebugTrace: >

0 commit comments

Comments
 (0)