Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug: Code editor: command to debug content of Object variable under cursor/caret in remote Inspector #9102

Open
hsandt opened this issue Feb 15, 2024 · 0 comments

Comments

@hsandt
Copy link

hsandt commented Feb 15, 2024

Describe the project you are working on

A platformer

Describe the problem or limitation you are having in your project

During play, I must often debug Object variables (such as PackedScene or a custom Node class) and my first reflex is to hover the variable name, but it will show an ID like this:

image

It's not usable, so I must go to the Debugger panel to find the variable name and click it to display its content in the Inspector.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

An action that allows the user to open a certain variable in the code editor, directly in the Inspector.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

There could be done via:

  • a special click (e.g. Click on tooltip)
  • a contextual menu item (right-click > Inspect that only shows during Play)
  • a command (only worth it when bound to a shortcut (e.g. Ctrl+Alt+I)

which would open the variable under the cursor/caret in the Inspector.

If this enhancement will not be used often, can it be worked around with a few lines of script?

No

Is there a reason why this should be core and not an add-on in the asset library?

It affects the code editor and connects it to the Inspector directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants