Repository: godotengine/godot (language: cpp)

Issue:
Object inspection through DAP is broken in 4.5_dev1
### Tested versions

It works in 4.4 and 4.4.1, but fails with 4.5_dev1 and master in both Rider and VSCode

![Image](https://github.com/user-attachments/assets/9d247729-a480-4655-b403-d4b6d3524b55)

![Image](https://github.com/user-attachments/assets/c0397908-6d8f-49d0-9b51-6e6cfb75a3aa)

### System information

MacOSX

### Issue description

The feature in question was introduced with https://github.com/godotengine/godot/pull/97585
I can't seem to find where exactly it got broken.

### Steps to reproduce

debug any simple project with DAP

### Minimal reproduction project (MRP)

-


Discussion / hints:
Sounds like this is the same as:
* https://github.com/godotengine/godot/issues/104445

Can you test with a build from `master`?
yeah, thank you, closing this as duplicate.
To confirm, this is working on current `master`? If not then it is not a duplicate
Yeah, got a bit confused.
It is NOT fixed on master. I have checked, 
https://github.com/godotengine/godot/pull/104573 didn't help.
cc: @YeldhamDev

Fix patch:
diff --git a/editor/debugger/debug_adapter/debug_adapter_protocol.cpp b/editor/debugger/debug_adapter/debug_adapter_protocol.cpp
index 17f0b9bef56c..61a785066c56 100644
--- a/editor/debugger/debug_adapter/debug_adapter_protocol.cpp
+++ b/editor/debugger/debug_adapter/debug_adapter_protocol.cpp
@@ -1130,12 +1130,14 @@ void DebugAdapterProtocol::on_debug_data(const String &p_msg, const Array &p_dat
 		return;
 	}
 
-	if (p_msg == "scene:inspect_object") {
-		// An object was requested from the debuggee; parse it.
-		SceneDebuggerObject remote_obj;
-		remote_obj.deserialize(p_data);
+	if (p_msg == "scene:inspect_objects") {
+		if (!p_data.is_empty()) {
+			// An object was requested from the debuggee; parse it.
+			SceneDebuggerObject remote_obj;
+			remote_obj.deserialize(p_data[0]);
 
-		parse_object(remote_obj);
+			parse_object(remote_obj);
+		}
 	} else if (p_msg == "evaluation_return") {
 		// An evaluation was requested from the debuggee; parse it.
 		DebuggerMarshalls::ScriptStackVariable remote_evaluation;


Test patch: