@@ -29,9 +29,9 @@ function execute_command(state::DebuggerState, v::Union{Val{:c},Val{:nc},Val{:n}
29
29
# These commands take no arguments
30
30
kwargs = Dict ()
31
31
if v != Val (:u )
32
- length (split (cmd)) == 1 || return invalid_command (state, cmd)
32
+ length (split (cmd, r" + " )) == 1 || return invalid_command (state, cmd)
33
33
else
34
- args = split (cmd)
34
+ args = split (cmd, r" + " )
35
35
length (args) > 2 && return invalid_command (state, cmd)
36
36
cmd = args[1 ]
37
37
if length (args) == 2
93
93
execute_command (state:: DebuggerState , :: Val{:st} , cmd) = true
94
94
95
95
function execute_command (state:: DebuggerState , :: Union{Val{:f}, Val{:fr}} , cmd)
96
- subcmds = split (cmd, ' ' )
96
+ subcmds = split (cmd, r" + " )
97
97
if length (subcmds) == 1
98
98
if cmd == " f"
99
99
new_level = 1
@@ -129,7 +129,7 @@ function execute_command(state::DebuggerState, ::Union{Val{:f}, Val{:fr}}, cmd)
129
129
end
130
130
131
131
function execute_command (state:: DebuggerState , v:: Union{Val{:up}, Val{:down}} , cmd:: AbstractString )
132
- args = split (cmd, " " )[2 : end ]
132
+ args = split (cmd, r" + " )[2 : end ]
133
133
if isempty (args)
134
134
offset = v == Val (:up ) ? + 1 : - 1
135
135
else
@@ -142,7 +142,7 @@ function execute_command(state::DebuggerState, v::Union{Val{:up}, Val{:down}}, c
142
142
end
143
143
function execute_command (state:: DebuggerState , :: Val{:w} , cmd:: AbstractString )
144
144
# TODO show some info messages?
145
- cmds = split (cmd)
145
+ cmds = split (cmd, r" + " )
146
146
success_and_show = false
147
147
if length (cmds) == 1
148
148
success_and_show = true
@@ -176,7 +176,7 @@ function execute_command(state::DebuggerState, ::Val{:w}, cmd::AbstractString)
176
176
end
177
177
178
178
function execute_command (state:: DebuggerState , v:: Union{Val{:bp}} , cmd:: AbstractString )
179
- cmds = split (cmd, ' ' )
179
+ cmds = split (cmd, r" + " )
180
180
function repl_show_breakpoints ()
181
181
if state. terminal != = nothing
182
182
io = Base. pipe_writer (state. terminal)
@@ -294,7 +294,7 @@ function execute_command(state::DebuggerState, ::Union{Val{:help}, Val{:?}}, cmd
294
294
295
295
296
296
An empty command will execute the previous command.
297
-
297
+
298
298
Hit `` ` `` to enter "evaluation mode," where any expression you type is executed in the debug context.
299
299
Hit backspace as the first character of the line (or `^C` anywhere) to return to "debug mode." """ )
300
300
return false
0 commit comments