| 282 | } |
| 283 | |
| 284 | bool 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 | |
| 300 | String GDScriptLanguage::debug_get_error() const { |
| 301 | return _debug_error; |
no test coverage detected