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

Method stop

editor/debugger/script_editor_debugger.cpp:1282–1311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1280}
1281
1282void ScriptEditorDebugger::stop() {
1283 set_process(false);
1284 threads_debugged.clear();
1285 debugging_thread_id = Thread::UNASSIGNED_ID;
1286 remote_pid = 0;
1287 _clear_execution();
1288
1289 inspector->clear_cache();
1290
1291 if (peer.is_valid()) {
1292 peer->close();
1293 peer.unref();
1294 reason->set_text("");
1295 reason->set_tooltip_text("");
1296 reason->set_custom_minimum_size(Size2(0, 0));
1297 }
1298
1299 node_path_cache.clear();
1300 res_path_cache.clear();
1301 profiler_signature.clear();
1302
1303 profiler->set_enabled(false, false);
1304 profiler->set_profiling(false);
1305
1306 visual_profiler->set_enabled(false);
1307 visual_profiler->set_profiling(false);
1308
1309 inspector->edit(nullptr);
1310 _update_buttons_state();
1311}
1312
1313void ScriptEditorDebugger::_profiler_activate(bool p_enable, int p_type) {
1314 Array msg_data = { p_enable };

Callers

nothing calls this directly

Calls 11

closeMethod · 0.65
clearMethod · 0.45
clear_cacheMethod · 0.45
is_validMethod · 0.45
unrefMethod · 0.45
set_textMethod · 0.45
set_tooltip_textMethod · 0.45
set_enabledMethod · 0.45
set_profilingMethod · 0.45
editMethod · 0.45

Tested by

no test coverage detected