diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-09-04 01:31:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-04 01:31:08 +0200 |
commit | 75cbcb596a2ffc2a289fe1319292d1eb9a788732 (patch) | |
tree | d3a1ac88a273a0b1322b40d61e0e3485aa13ea7d /modules/gdscript/gdscript_editor.cpp | |
parent | 5d162798cd172404a5a7101a9c5666046ef62e88 (diff) | |
parent | 617797c47cac39830282b7ea85fc38eb2d242e19 (diff) |
Merge pull request #30982 from iwek7/feature/skip_breakpoints
Adds skip-breakpoints feature
Diffstat (limited to 'modules/gdscript/gdscript_editor.cpp')
-rw-r--r-- | modules/gdscript/gdscript_editor.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp index b4c38e4d40..9b3bf8ad5b 100644 --- a/modules/gdscript/gdscript_editor.cpp +++ b/modules/gdscript/gdscript_editor.cpp @@ -223,7 +223,7 @@ bool GDScriptLanguage::debug_break_parse(const String &p_file, int p_line, const _debug_parse_err_line = p_line; _debug_parse_err_file = p_file; _debug_error = p_error; - ScriptDebugger::get_singleton()->debug(this, false); + ScriptDebugger::get_singleton()->debug(this, false, true); return true; } else { return false; @@ -237,7 +237,8 @@ bool GDScriptLanguage::debug_break(const String &p_error, bool p_allow_continue) _debug_parse_err_line = -1; _debug_parse_err_file = ""; _debug_error = p_error; - ScriptDebugger::get_singleton()->debug(this, p_allow_continue); + bool is_error_breakpoint = p_error != "Breakpoint"; + ScriptDebugger::get_singleton()->debug(this, p_allow_continue, is_error_breakpoint); return true; } else { return false; |