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

Method debug_break_parse

modules/mono/csharp_script.cpp:1057–1068  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1055#endif
1056
1057bool CSharpLanguage::debug_break_parse(const String &p_file, int p_line, const String &p_error) {
1058 // Not a parser error in our case, but it's still used for other type of errors
1059 if (EngineDebugger::is_active() && Thread::get_caller_id() == Thread::get_main_id()) {
1060 _debug_parse_err_line = p_line;
1061 _debug_parse_err_file = p_file;
1062 _debug_error = p_error;
1063 EngineDebugger::get_script_debugger()->debug(this, false, true);
1064 return true;
1065 } else {
1066 return false;
1067 }
1068}
1069
1070bool CSharpLanguage::debug_break(const String &p_error, bool p_allow_continue) {
1071 if (EngineDebugger::is_active() && Thread::get_caller_id() == Thread::get_main_id()) {

Callers 1

instance_createMethod · 0.45

Calls 1

debugMethod · 0.45

Tested by

no test coverage detected