You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,8 @@ the context of functions.
39
39
40
40
Below, square brackets denote optional arguments.
41
41
42
+
All of the following commands work when the prompt is `1|debug>`:
43
+
42
44
Misc:
43
45
-`o`: open the current line in an editor
44
46
-`q`: quit the debugger, returning `nothing`
@@ -67,7 +69,6 @@ Querying:
67
69
-`fr [i::Int]`: show all variables in the current or `i`th frame
68
70
69
71
Evaluation:
70
-
-``` `stuff ```: run `stuff` in the current function's context
71
72
-`w`
72
73
-`w add expr`: add an expression to the watch list
73
74
-`w`: show all watch expressions evaluated in the current function's context
@@ -92,6 +93,15 @@ Breakpoints:
92
93
93
94
An empty command will execute the previous command.
94
95
96
+
Changing frames with `f i::Int` will change the prompt to `$i|debug>`.
97
+
Stepping commands will not work until you return to `f 1`, but a subset of normal commands will continue to work.
98
+
99
+
In addition to these debugging commands, you can type `` ` `` to enter "evaluation mode" indicated by a prompt `$i|julia>`.
100
+
In evaluation mode, any expression you type is executed in the debug context.
101
+
For example, if you have a local variable named `n`, then once in evaluation mode typing `n` will show you the value of `n` rather than advancing to the next line.
102
+
103
+
Hit backspace as the first character of the line to return to "debug mode."
104
+
95
105
### Breakpoints
96
106
97
107
To add and manipulate breakpoints, either the `bp add` command in the debug interface or the JuliaInterpreter breakpoint API, documented [here](https://juliadebug.github.io/JuliaInterpreter.jl/latest/dev_reference/#Breakpoints-1)
0 commit comments