diff options
| author | George L. Albany <Megacake1234@gmail.com> | 2024-11-12 20:29:24 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-12 20:29:24 +0000 |
| commit | ac1a49725fc038ae11ef9060fecb2b0f9c6333b2 (patch) | |
| tree | c7341bd56c977259578b127886c9a88eeef11820 /core/debugger/local_debugger.cpp | |
| parent | 5094c2a5f7d506b0e685120f14d1df42e1e9d495 (diff) | |
| parent | 3a73c6ebd18bff0fa125be58d3ac9c7a63bab61d (diff) | |
| download | redot-engine-ac1a49725fc038ae11ef9060fecb2b0f9c6333b2.tar.gz | |
Merge pull request #855 from Spartan322/merge/cb411fa
Merge commit godotengine/godot@cb411fa
Diffstat (limited to 'core/debugger/local_debugger.cpp')
| -rw-r--r-- | core/debugger/local_debugger.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/debugger/local_debugger.cpp b/core/debugger/local_debugger.cpp index 95798c3654..965dfa96c3 100644 --- a/core/debugger/local_debugger.cpp +++ b/core/debugger/local_debugger.cpp @@ -210,10 +210,10 @@ void LocalDebugger::debug(bool p_can_continue, bool p_is_error_breakpoint) { print_variables(members, values, variable_prefix); } else if (line.begins_with("p") || line.begins_with("print")) { - if (line.get_slice_count(" ") <= 1) { - print_line("Usage: print <expre>"); + if (line.find_char(' ') < 0) { + print_line("Usage: print <expression>"); } else { - String expr = line.get_slicec(' ', 2); + String expr = line.split(" ", true, 1)[1]; String res = script_lang->debug_parse_stack_level_expression(current_frame, expr); print_line(res); } |
