Merge pull request #97758 from TsFreddie/debugger-stepout

Add step out to script debugger
This commit is contained in:
Thaddeus Crews 2025-11-14 14:23:01 -06:00
commit 90413dacb4
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
6 changed files with 29 additions and 0 deletions

View file

@ -225,6 +225,10 @@ void LocalDebugger::debug(bool p_can_continue, bool p_is_error_breakpoint) {
script_debugger->set_depth(0);
script_debugger->set_lines_left(1);
break;
} else if (line == "o" || line == "out") {
script_debugger->set_depth(1);
script_debugger->set_lines_left(1);
break;
} else if (line == "fin" || line == "finish") {
String current_function = script_lang->debug_get_stack_level_function(0);