summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJon Cairns <jon@joncairns.com>2015-08-21 17:07:10 +0100
committerJon Cairns <jon@joncairns.com>2015-08-21 17:08:10 +0100
commit1b55c6d3fa5a08e1f3da7b2b96f2d34243ff080f (patch)
tree04b29c5eab235080c59ea2dc8a24da58634744f0 /doc
parentd29168d9ed866b065210b8223e06a20f57eb46b0 (diff)
downloadvdebug-1b55c6d3fa5a08e1f3da7b2b96f2d34243ff080f.zip
Add VdebugTrace info to help
Diffstat (limited to 'doc')
-rw-r--r--doc/Vdebug.txt44
1 files changed, 40 insertions, 4 deletions
diff --git a/doc/Vdebug.txt b/doc/Vdebug.txt
index 7560847..15928ab 100644
--- a/doc/Vdebug.txt
+++ b/doc/Vdebug.txt
@@ -39,6 +39,7 @@ CONTENTS *Vdebug-contents*
4.2.4 The status window..................|VdebugStatusWindow|
4.2.5 The breakpoint window..............|VdebugBreakpointWindow|
4.2.6 The log window.....................|VdebugLogWindow|
+ 4.2.7 The trace window...................|VdebugTraceWindow|
4.3 Commands.................................|VdebugCommands|
4.3.1 Run................................|VdebugCommandRun|
4.3.2 Step over..........................|VdebugCommandStepOver|
@@ -56,6 +57,7 @@ CONTENTS *Vdebug-contents*
4.5.1 Evaluating any expression..........|VdebugEvalExpression|
4.5.2 Evaluating highlighted expressions.|VdebugEvalHighlighted|
4.5.3 Evaluating variable under cursor |VdebugEvalUnderCursor|
+ 4.6 Tracing expressions......................|VdebugTrace|
5. Options.......................................|VdebugOptions|
5.1 Quickly setting options..................|VdebugOpt|
5.2 List of options..........................|VdebugOptionList|
@@ -513,9 +515,8 @@ to go for help!
------------------------------------------------------------------------------
4.2.5 The breakpoint window *VdebugBreakpointWindow*
-This is a bit of an odd one out, as it doesn't show by default and can be
-summoned at will. It lists all the breakpoints that have been set, and shows
-the IDs that can be used to remove them.
+This window doesn't show by default and can be summoned at will. It lists all
+the breakpoints that have been set, and shows the IDs that can be used to remove them.
To open the window use the command :BreakpointWindow. It's in a table format,
so hopefully it won't need any more explanation. To close the window again,
@@ -526,7 +527,7 @@ To see more about breakpoints see |VdebugBreakpoints|.
------------------------------------------------------------------------------
4.2.6 The log window *VdebugLogWindow*
-Another odd one out, this only appears in two situations:
+This window automatically appears in two situations:
1. You have the "debug_window_level" option set to >= 1
2. An error occurs
@@ -538,6 +539,16 @@ If you want to log things, it's better to use file logging (see
|VdebugLogFile|).
------------------------------------------------------------------------------
+4.2.7 The trace window *VdebugTraceWindow*
+
+This window will only show when using the :VdebugTrace command.
+
+It shows the evaluated expression that you pass to the command, each time the
+debugger changes position in the code.
+
+For more about this, see |VdebugTrace|.
+
+------------------------------------------------------------------------------
4.3 Commands *VdebugCommands*
This section will describe the basic commands that you will need to start
@@ -751,6 +762,31 @@ You can evaluate the variable under the cursor in the watch window with <F12>
value, and trying to evaluate uninitialized variables may cause an error with
some debugger engines.
+------------------------------------------------------------------------------
+4.6 Tracing expressions *VdebugTrace*
+
+A large part of this work is thanks to escher9 on Github. See this pull
+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.
+
+To use this feature, when you're connected to the debugger use the command
+:VdebugTrace: >
+ :VdebugTrace <expression>
+<
+
+This reveals the trace window, which will stay open until you close it manually.
+It will track the result of your expression.
+
+A concrete example of usage is as follows: >
+ :VdebugTrace $x
+<
+
+This would track the variable "$x" as the code runs.
+
==============================================================================
5. Options *VdebugOptions*