Skip to content

Commit

Permalink
Merge pull request #16882 from GodotExplorer/debugger-improvement-1
Browse files Browse the repository at this point in the history
Small improvements for the debugger
  • Loading branch information
akien-mga authored Feb 21, 2018
2 parents 35053e5 + cfde737 commit 1c77fdc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions editor/script_editor_debugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1285,14 +1285,14 @@ void ScriptEditorDebugger::_stack_dump_frame_selected() {
emit_signal("goto_script_line", stack_script, int(d["line"]) - 1);
stack_script.unref();

ERR_FAIL_COND(connection.is_null());
ERR_FAIL_COND(!connection->is_connected_to_host());
///

Array msg;
msg.push_back("get_stack_frame_vars");
msg.push_back(d["frame"]);
ppeer->put_var(msg);
if (connection.is_valid() && connection->is_connected_to_host()) {
Array msg;
msg.push_back("get_stack_frame_vars");
msg.push_back(d["frame"]);
ppeer->put_var(msg);
} else {
inspector->edit(NULL);
}
}

void ScriptEditorDebugger::_output_clear() {
Expand Down

0 comments on commit 1c77fdc

Please sign in to comment.