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

Method _thread_debug_enter

editor/debugger/script_editor_debugger.cpp:330–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328}
329
330void 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
342void ScriptEditorDebugger::_select_thread(int p_index) {
343 debugging_thread_id = threads->get_item_metadata(threads->get_selected());

Callers

nothing calls this directly

Calls 5

ArrayClass · 0.50
hasMethod · 0.45
is_emptyMethod · 0.45
set_current_tabMethod · 0.45
clear_cacheMethod · 0.45

Tested by

no test coverage detected