MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / debug_break

Method debug_break

modules/gdscript/gdscript_editor.cpp:284–298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282}
283
284bool GDScriptLanguage::debug_break(const String &p_error, bool p_allow_continue) {
285 if (EngineDebugger::is_active()) {
286 _debug_parse_err_line = -1;
287 _debug_parse_err_file = "";
288 _debug_error = p_error;
289 bool is_error_breakpoint = p_error != "Breakpoint";
290 EngineDebugger::get_script_debugger()->debug(this, p_allow_continue, is_error_breakpoint);
291 // Because this is thread local, clear the memory afterwards.
292 _debug_parse_err_file = String();
293 _debug_error = String();
294 return true;
295 } else {
296 return false;
297 }
298}
299
300String GDScriptLanguage::debug_get_error() const {
301 return _debug_error;

Callers 2

gdscript_vm.cppFile · 0.45
OPCODEFunction · 0.45

Calls 2

StringClass · 0.50
debugMethod · 0.45

Tested by

no test coverage detected