From 8280bb0de0737f9149face902db21192a0d98ca8 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Tue, 4 Aug 2015 20:17:13 -0300 Subject: more debugger fixes -setting/clearing breakpoints during run-time now works -multi-line strings resulted in wrong line numbers in bytecode, fixed --- tools/editor/script_editor_debugger.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tools/editor/script_editor_debugger.cpp') diff --git a/tools/editor/script_editor_debugger.cpp b/tools/editor/script_editor_debugger.cpp index 7ef1be0da..2e1fa2814 100644 --- a/tools/editor/script_editor_debugger.cpp +++ b/tools/editor/script_editor_debugger.cpp @@ -1078,6 +1078,19 @@ void ScriptEditorDebugger::live_debug_reparent_node(const NodePath& p_at, const } +void ScriptEditorDebugger::set_breakpoint(const String& p_path,int p_line,bool p_enabled) { + + if (connection.is_valid()) { + Array msg; + msg.push_back("breakpoint"); + msg.push_back(p_path); + msg.push_back(p_line); + msg.push_back(p_enabled); + ppeer->put_var(msg); + } +} + + void ScriptEditorDebugger::_error_selected(int p_idx) { error_stack->clear(); -- cgit v1.2.3-70-g09d2