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

Method add_debugger_plugin

editor/debugger/editor_debugger_node.cpp:908–917  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

906}
907
908void EditorDebuggerNode::add_debugger_plugin(const Ref<EditorDebuggerPlugin> &p_plugin) {
909 ERR_FAIL_COND_MSG(p_plugin.is_null(), "Debugger plugin is null.");
910 ERR_FAIL_COND_MSG(debugger_plugins.has(p_plugin), "Debugger plugin already exists.");
911 debugger_plugins.insert(p_plugin);
912
913 Ref<EditorDebuggerPlugin> plugin = p_plugin;
914 for (int i = 0; get_debugger(i); i++) {
915 plugin->create_session(get_debugger(i));
916 }
917}
918
919void EditorDebuggerNode::remove_debugger_plugin(const Ref<EditorDebuggerPlugin> &p_plugin) {
920 ERR_FAIL_COND_MSG(p_plugin.is_null(), "Debugger plugin is null.");

Callers

nothing calls this directly

Calls 4

is_nullMethod · 0.45
hasMethod · 0.45
insertMethod · 0.45
create_sessionMethod · 0.45

Tested by

no test coverage detected