muhammadsammy / free-vscode-csharp

Free/Libre fork of the official C# extension for vscode
https://open-vsx.org/extension/muhammad-sammy/csharp
Other
110 stars 10 forks source link

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

Open Dreamoochy opened 1 year ago

Dreamoochy commented 1 year ago

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().