godotengine / godot-proposals

Godot Improvement Proposals (GIPs)
MIT License
1.07k stars 68 forks source link

Add an expression evaluator (REPL support with inspector sequent results) #4473

Open rohanrhu opened 2 years ago

rohanrhu commented 2 years ago

Describe the project you are working on

Meow... I made an expression evaluator:

https://github.com/godotengine/godot/pull/60134

image

Describe the problem or limitation you are having in your project

We need an expression evaluator in debugger, it is a very common need 😊

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

The evaluator has sequent results for expressions. It can get locals and members. When you click objects on results, it opens the object on inspector.

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

Evaluator is using Expression class.

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

Meow

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

Meow

marcelb commented 1 year ago

This is so cool.

visuallization commented 1 year ago

Looking forward to this. :)

Calinou commented 1 year ago

@visuallization Please don't bump issues without contributing significant new information. Use the :+1: reaction button on the first post instead.

The3DWizard commented 4 months ago

Is there any active development going on for this issue? I see that it has been bumped to 4.3, but none of the dev snapshots of 4.3 mentions anything about debugging. Just curious about what the current state is.

Calinou commented 4 months ago

Is there any active development going on for this issue? I see that it has been bumped to 4.3, but none of the dev snapshots of 4.3 mentions anything about debugging. Just curious about what the current state is.

The pull request needs to be rebased, but since 4.3 is entering its beta stage soon (where no large new features may be added), I doubt it'll make it for 4.3.

rohanrhu commented 4 months ago

Is there any active development going on for this issue? I see that it has been bumped to 4.3, but none of the dev snapshots of 4.3 mentions anything about debugging. Just curious about what the current state is.

The pull request needs to be rebased, but since 4.3 is entering its beta stage soon (where no large new features may be added), I doubt it'll make it for 4.3.

Hi @Calinou, I made the latest requests but seems like (I'm not %100 sure though) a weird behavior is coming from inspector component's internal behavior; it is refreshing expression values when debugger's current stack frame is changed.