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

Method set_keep_open

editor/debugger/editor_debugger_node.cpp:258–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256}
257
258void 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
277Error EditorDebuggerNode::start(const String &p_uri) {
278 if (Engine::get_singleton()->is_recovery_mode_hint()) {

Callers 2

main.cppFile · 0.80
_menu_optionMethod · 0.80

Calls 4

_for_allFunction · 0.85
is_session_activeMethod · 0.80
is_nullMethod · 0.45
is_activeMethod · 0.45

Tested by

no test coverage detected