| 924 | } |
| 925 | |
| 926 | bool EditorDebuggerNode::plugins_capture(ScriptEditorDebugger *p_debugger, const String &p_message, const Array &p_data) { |
| 927 | int session_index = tabs->get_tab_idx_from_control(p_debugger); |
| 928 | ERR_FAIL_COND_V(session_index < 0, false); |
| 929 | int colon_index = p_message.find_char(':'); |
| 930 | ERR_FAIL_COND_V_MSG(colon_index < 1, false, "Invalid message received."); |
| 931 | |
| 932 | const String cap = p_message.substr(0, colon_index); |
| 933 | bool parsed = false; |
| 934 | for (Ref<EditorDebuggerPlugin> plugin : debugger_plugins) { |
| 935 | if (plugin->has_capture(cap)) { |
| 936 | parsed |= plugin->capture(p_message, p_data, session_index); |
| 937 | } |
| 938 | } |
| 939 | return parsed; |
| 940 | } |
no test coverage detected