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

Interactive debug console for easy debugging #5280

Closed
Yalchin403 opened this issue Aug 28, 2022 · 2 comments
Closed

Interactive debug console for easy debugging #5280

Yalchin403 opened this issue Aug 28, 2022 · 2 comments

Comments

@Yalchin403
Copy link

Describe the project you are working on

I'm mostly coding different algorithms for FPS games in our company. I usually need elaborate debugging rather than using simple print statements. Having an interactive debug console would help to get the only needed values instead of scrolling through the debug section like we have right now. I'm imagining something similar to debug console available inside VS code

Describe the problem or limitation you are having in your project

I cannot quickly debug the problems, if I need to quickly take a look at the nested array, I need to use GUI to seek through

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

Adding this feature would lead to quickly and efficiently debugging the problems. Just putting debug breakpoint and using interactive debug console taking a look at target values.

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

For me, it would be perfect if we can have an interactive debug console. Lets say having the debug section (what we have currently in Godot) and below that there is an interactive debug console waiting for our input. Lets say in our code section we put breakpoint for line 55, once we run it, execution stops at the target line. Lets imagine in line 10 there is a variable foo = "bar", assuming the code doesn't contain any error, and works properly, if we input foo in the debug console, we should get "bar" as our return value in the debug console.

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

I think as an alternative for this feature, what we can do is putting some code snippet which enables us to ask for input on the fly. But, I'm inclined to believe that having a nicely builtin debug console would definitely be perfect for all the developers.

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

I think being able to debug easily by just the editor itself should be accessible without any add-on. That's how I saw and used most of the editors and IDEs out there till now.

@Zireael07
Copy link

Please add to the title that it's for editor debugger - I was thinking you want this for the game itself, which a couple of assets already do.

@Calinou
Copy link
Member

Calinou commented Aug 28, 2022

Duplicate of #4473.

@Calinou Calinou closed this as not planned Won't fix, can't repro, duplicate, stale Aug 28, 2022
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

3 participants