0 votes

I have an Area2D as the main node. I add a sprite and a few other nodes. If I trigger a breakpoint and go into debug, how can I see the properties of the sprite? Is there a way to view all the nodes and their property values in debug?

asked Jul 11 in Engine by ondesic (173 points)

I've been able to do this when I used a breakpoint statement. On the right side of the debugger panel, there's buttons for stepping into a function, as well as stepping over a function. Here you can see various values of variables and the like.

I understand this. I want to access the node's info themselves. Like:

Node2D
     sprite
     label

In the above example, while in debug I can't access the properties of $sprite or $label.

How do I do this?

Drat. From what I've found, the inspection of nodes is rather limited. I can access the values of the top-most node via the debugging pane. But any node beyond the root node seems to be out of reach.

1 Answer

0 votes
Best answer

The answer is while in Debug mode, Go to the node tree window. Then select "REMOTE" instead of "LOCAL" and you can view the node's info directly in the inspector.

answered Jul 12 by ondesic (173 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.