Skip to content

Commit 5d6a583

Browse files
authored
add status command (#69)
1 parent 770e653 commit 5d6a583

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ out of functions, line stepping, showing local variables, and evaluating code in
3333
the context of functions.
3434

3535
Basic Commands:
36+
- `st`: show the status
3637
- `n`: step to the next line
3738
- `s`: step into the next call
3839
- `so`: step out of the current call

src/commands.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ function stacklength(frame)
7474
return s
7575
end
7676

77+
execute_command(state::DebuggerState, ::Val{:st}, cmd) = true
78+
7779
function execute_command(state::DebuggerState, ::Union{Val{:f}, Val{:fr}}, cmd)
7880
subcmds = split(cmd,' ')[2:end]
7981
if isempty(subcmds) || subcmds[1] == "v"
@@ -99,6 +101,7 @@ function execute_command(state::DebuggerState, ::Val{:?}, cmd::AbstractString)
99101
display(
100102
@md_str """
101103
Basic Commands:\\
104+
- `st`: show the status\\
102105
- `n`: step to the next line\\
103106
- `s`: step into the next call\\
104107
- `so`: step out of the current call\\

0 commit comments

Comments
 (0)