You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-27 15:57:02 +00:00
Don't print error message when select debugger stacks if the debugger is stopped.
Clear debugger stack inspector if the debugger is stopped when selected stack changed.
(cherry picked from commit cfde737478)
This commit is contained in:
committed by
Hein-Pieter van Braam
parent
626525d23a
commit
9febb6f747
@@ -1277,14 +1277,14 @@ void ScriptEditorDebugger::_stack_dump_frame_selected() {
|
|||||||
emit_signal("goto_script_line", stack_script, int(d["line"]) - 1);
|
emit_signal("goto_script_line", stack_script, int(d["line"]) - 1);
|
||||||
stack_script.unref();
|
stack_script.unref();
|
||||||
|
|
||||||
ERR_FAIL_COND(connection.is_null());
|
if (connection.is_valid() && connection->is_connected_to_host()) {
|
||||||
ERR_FAIL_COND(!connection->is_connected_to_host());
|
|
||||||
///
|
|
||||||
|
|
||||||
Array msg;
|
Array msg;
|
||||||
msg.push_back("get_stack_frame_vars");
|
msg.push_back("get_stack_frame_vars");
|
||||||
msg.push_back(d["frame"]);
|
msg.push_back(d["frame"]);
|
||||||
ppeer->put_var(msg);
|
ppeer->put_var(msg);
|
||||||
|
} else {
|
||||||
|
inspector->edit(NULL);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScriptEditorDebugger::_output_clear() {
|
void ScriptEditorDebugger::_output_clear() {
|
||||||
|
|||||||
Reference in New Issue
Block a user