| 256 | } |
| 257 | |
| 258 | void EditorDebuggerNode::set_keep_open(bool p_keep_open) { |
| 259 | keep_open = p_keep_open; |
| 260 | if (keep_open) { |
| 261 | if (server.is_null() || !server->is_active()) { |
| 262 | start(); |
| 263 | } |
| 264 | } else { |
| 265 | bool found = false; |
| 266 | _for_all(tabs, [&](ScriptEditorDebugger *p_debugger) { |
| 267 | if (p_debugger->is_session_active()) { |
| 268 | found = true; |
| 269 | } |
| 270 | }); |
| 271 | if (!found) { |
| 272 | stop(); |
| 273 | } |
| 274 | } |
| 275 | } |
| 276 | |
| 277 | Error EditorDebuggerNode::start(const String &p_uri) { |
| 278 | if (Engine::get_singleton()->is_recovery_mode_hint()) { |
no test coverage detected