Skip to content

Commit

Permalink
Allow to select multiple remote nodes at runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
YeldhamDev committed Feb 1, 2025
1 parent 1586c56 commit 2136a4b
Show file tree
Hide file tree
Showing 20 changed files with 1,390 additions and 500 deletions.
4 changes: 4 additions & 0 deletions doc/classes/EditorSettings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@
<member name="debugger/auto_switch_to_stack_trace" type="bool" setter="" getter="">
If [code]true[/code], automatically switches to the [b]Stack Trace[/b] panel when the debugger hits a breakpoint or steps.
</member>
<member name="debugger/max_node_selection" type="int" setter="" getter="">
The limit of how many remote nodes can be selected at once.
[b]Warning:[/b] Increasing this value is not recommended, as selecting too many can make the editing and inspection of remote properties unreliable.
</member>
<member name="debugger/profile_native_calls" type="bool" setter="" getter="">
If [code]true[/code], enables collection of profiling data from non-GDScript Godot functions, such as engine class methods. Enabling this slows execution while profiling further.
</member>
Expand Down
4 changes: 3 additions & 1 deletion editor/debugger/debug_adapter/debug_adapter_protocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,9 @@ bool DebugAdapterProtocol::request_remote_object(const ObjectID &p_object_id) {
return false;
}

EditorDebuggerNode::get_singleton()->get_default_debugger()->request_remote_object(p_object_id);
TypedArray<uint64_t> arr;
arr.append(p_object_id);
EditorDebuggerNode::get_singleton()->get_default_debugger()->request_remote_objects(arr);
object_pending_set.insert(p_object_id);

return true;
Expand Down
Loading

0 comments on commit 2136a4b

Please sign in to comment.