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

Debugging: upper-scope variables aren't visible in the nested functions #49

Open
Dreamoochy opened this issue Feb 27, 2023 · 0 comments

Comments

@Dreamoochy
Copy link

I apologize if this is a wrong place to report this issue.

There is a code:

void TestNested() {
    int i = 0;
    Nested();

    void Nested() {
        i += 2;
    }
}

When I debug into Nested(), the i variable is not visible anymore neither in Locals nor in Watches. I cosider it a bug because i is available for Nested().

muhammadsammy pushed a commit that referenced this issue Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant