| 328 | } |
| 329 | |
| 330 | void ScriptEditorDebugger::_thread_debug_enter(uint64_t p_thread_id) { |
| 331 | ERR_FAIL_COND(!threads_debugged.has(p_thread_id)); |
| 332 | ThreadDebugged &td = threads_debugged[p_thread_id]; |
| 333 | _set_reason_text(td.error, MESSAGE_ERROR); |
| 334 | emit_signal(SNAME("breaked"), true, td.can_debug, td.error, td.has_stackdump); |
| 335 | if (!td.error.is_empty() && EDITOR_GET("debugger/auto_switch_to_stack_trace")) { |
| 336 | tabs->set_current_tab(0); |
| 337 | } |
| 338 | inspector->clear_cache(); // Take a chance to force remote objects update. |
| 339 | _put_msg("get_stack_dump", Array(), p_thread_id); |
| 340 | } |
| 341 | |
| 342 | void ScriptEditorDebugger::_select_thread(int p_index) { |
| 343 | debugging_thread_id = threads->get_item_metadata(threads->get_selected()); |
nothing calls this directly
no test coverage detected