diff options
author | Ricardo Subtil <ricasubtil@gmail.com> | 2024-03-14 10:53:30 +0000 |
---|---|---|
committer | Ricardo Subtil <ricasubtil@gmail.com> | 2024-03-14 14:34:14 +0000 |
commit | b6d12041861960804554a23b3d7820c9f7772c3e (patch) | |
tree | 6d773058158bdb50c3da7329bc594ec3b4403c8e /editor/debugger/script_editor_debugger.cpp | |
parent | f2045ba822bff7d34964901393581a3117c394a9 (diff) | |
download | redot-engine-b6d12041861960804554a23b3d7820c9f7772c3e.tar.gz |
Add output type to DAP `output` events
Diffstat (limited to 'editor/debugger/script_editor_debugger.cpp')
-rw-r--r-- | editor/debugger/script_editor_debugger.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/debugger/script_editor_debugger.cpp b/editor/debugger/script_editor_debugger.cpp index 979834ebab..2b880274f8 100644 --- a/editor/debugger/script_editor_debugger.cpp +++ b/editor/debugger/script_editor_debugger.cpp @@ -495,7 +495,7 @@ void ScriptEditorDebugger::_parse_message(const String &p_msg, uint64_t p_thread } break; } EditorNode::get_log()->add_message(output_strings[i], msg_type); - emit_signal(SNAME("output"), output_strings[i]); + emit_signal(SNAME("output"), output_strings[i], msg_type); } } else if (p_msg == "performance:profile_frame") { Vector<float> frame_data; @@ -1757,7 +1757,7 @@ void ScriptEditorDebugger::_bind_methods() { ADD_SIGNAL(MethodInfo("remote_object_updated", PropertyInfo(Variant::INT, "id"))); ADD_SIGNAL(MethodInfo("remote_object_property_updated", PropertyInfo(Variant::INT, "id"), PropertyInfo(Variant::STRING, "property"))); ADD_SIGNAL(MethodInfo("remote_tree_updated")); - ADD_SIGNAL(MethodInfo("output")); + ADD_SIGNAL(MethodInfo("output", PropertyInfo(Variant::STRING, "msg"), PropertyInfo(Variant::INT, "level"))); ADD_SIGNAL(MethodInfo("stack_dump", PropertyInfo(Variant::ARRAY, "stack_dump"))); ADD_SIGNAL(MethodInfo("stack_frame_vars", PropertyInfo(Variant::INT, "num_vars"))); ADD_SIGNAL(MethodInfo("stack_frame_var", PropertyInfo(Variant::ARRAY, "data"))); |