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

Method debug_break_parse

modules/gdscript/gdscript_editor.cpp:267–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265thread_local String GDScriptLanguage::_debug_error;
266
267bool GDScriptLanguage::debug_break_parse(const String &p_file, int p_line, const String &p_error) {
268 // break because of parse error
269
270 if (EngineDebugger::is_active() && Thread::get_caller_id() == Thread::get_main_id()) {
271 _debug_parse_err_line = p_line;
272 _debug_parse_err_file = p_file;
273 _debug_error = p_error;
274 EngineDebugger::get_script_debugger()->debug(this, false, true);
275 // Because this is thread local, clear the memory afterwards.
276 _debug_parse_err_file = String();
277 _debug_error = String();
278 return true;
279 } else {
280 return false;
281 }
282}
283
284bool GDScriptLanguage::debug_break(const String &p_error, bool p_allow_continue) {
285 if (EngineDebugger::is_active()) {

Callers 2

instance_createMethod · 0.45
reloadMethod · 0.45

Calls 2

StringClass · 0.50
debugMethod · 0.45

Tested by

no test coverage detected