@@ -742,19 +742,25 @@ of evaluating expressions: you can either write them yourself
742742the source window.
743743
744744On 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
750751To 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 in the watch window. By default, when you run code and the
755+ watch window refreshes, it will return to the context view. If you want to
756+ change the default behavior, so that your expression is re-evaluated and shown
757+ in the watch window after running code, then use :VdebugEval!: >
758+ :VdebugEval! $x + 2
759+ <
760+ To return to the default behavior of the watch window, use :VdebugEval! with
761+ no argument: >
762+ :VdebugEval!
756763<
757-
758764------------------------------------------------------------------------------
7597654.5.2 Evaluating highlighted expressions *VdebugEvalHighlighted*
760766
@@ -779,7 +785,8 @@ request for the history: https://github.com/joonty/vdebug/pull/178.
779785If you want to track an expression (any piece of code that can be evaluated)
780786or clearly see how a single variable changes through your code's execution,
781787you 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
784791To use this feature, when you're connected to the debugger use the command
785792:VdebugTrace: >
0 commit comments