| 1280 | } |
| 1281 | |
| 1282 | void 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 | |
| 1313 | void ScriptEditorDebugger::_profiler_activate(bool p_enable, int p_type) { |
| 1314 | Array msg_data = { p_enable }; |
nothing calls this directly
no test coverage detected