| 906 | } |
| 907 | |
| 908 | void 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 | |
| 919 | void EditorDebuggerNode::remove_debugger_plugin(const Ref<EditorDebuggerPlugin> &p_plugin) { |
| 920 | ERR_FAIL_COND_MSG(p_plugin.is_null(), "Debugger plugin is null."); |
nothing calls this directly
no test coverage detected