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

Debugger loses variable scope in the last line of a block #53442

Closed
sszigeti opened this issue Oct 5, 2021 · 3 comments
Closed

Debugger loses variable scope in the last line of a block #53442

sszigeti opened this issue Oct 5, 2021 · 3 comments

Comments

@sszigeti
Copy link

sszigeti commented Oct 5, 2021

Godot version

3.3.3.stable + v4.0.dev.20211004.official [2e8cba0]

System information

All

Issue description

As it was reported in 2019 the debugger loses scope in the last line of a block. The original reporter has promised to create a new issue but I don't think this happened, and when I saw that this is still an issue in 4.0.dev, I wanted to make sure it's not forgotten.

Steps to reproduce

Have a script like this:

for x in 5:
    my_func(x) # set a breakpoint here

The debugger won't see the x variable -- unless you edit the script and add another command after this single line

Minimal reproduction project

No response

@sszigeti
Copy link
Author

sszigeti commented Oct 5, 2021

This PR might be a fix for this.

@akien-mga
Copy link
Member

akien-mga commented Jan 8, 2023

See #63009 for a MRP.

According to that issue, this should be fixed in 4.0 now, but still reproducible in 3.x.

@akien-mga
Copy link
Member

Fixed by #71093.

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

Successfully merging a pull request may close this issue.

3 participants