1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Fix single-object inspect command regression

This commit is contained in:
yotam-frid
2025-08-28 02:39:33 +02:00
parent 89f32c6ead
commit b01b84e3a1
5 changed files with 53 additions and 0 deletions

View File

@@ -1176,6 +1176,16 @@ void DebugAdapterProtocol::on_debug_data(const String &p_msg, const Array &p_dat
parse_object(remote_obj);
}
#ifndef DISABLE_DEPRECATED
} else if (p_msg == "scene:inspect_object") {
if (!p_data.is_empty()) {
// Legacy single object response format.
SceneDebuggerObject remote_obj;
remote_obj.deserialize(p_data);
parse_object(remote_obj);
}
#endif // DISABLE_DEPRECATED
} else if (p_msg == "evaluation_return") {
// An evaluation was requested from the debuggee; parse it.
DebuggerMarshalls::ScriptStackVariable remote_evaluation;