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

[wasm][debugger] Evaluate list?.Count #69133

Closed
thaystg opened this issue May 10, 2022 · 2 comments · Fixed by #69307
Closed

[wasm][debugger] Evaluate list?.Count #69133

thaystg opened this issue May 10, 2022 · 2 comments · Fixed by #69307
Assignees
Labels
arch-wasm WebAssembly architecture area-Debugger-mono
Milestone

Comments

@thaystg
Copy link
Member

thaystg commented May 10, 2022

  1. Copied from: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1459677
  2. Create a new Blazor WebAssembly app using VS2022 (17.0.4)
  3. Replace Index.razor with
@page "/"

@code {
    protected override void OnInitialized()
    {
        List<int>? listNull = null; 
        List<int> list = new List<int>() {1};  // or this, doesn't matter
    } // Set breakpoint here
}
  1. Set breakpoint at the end of the method (as denoted in the code)
  2. Run in debug mode
  3. When breakpoint is hit, open Watch window and enter list?.Count

EXPECTED: null is returned or Count is returned

ACTUAL: Microsoft.VisualStudio.Shared.VSCodeDebugProtocol.ProtocolException is thrown

Also, if you try to evaluate the statement in “Immediate Window”, it will just return an empty line.

@ghost ghost added the untriaged New issue has not been triaged by the area owner label May 10, 2022
@ghost
Copy link

ghost commented May 10, 2022

Tagging subscribers to this area: @thaystg
See info in area-owners.md if you want to be subscribed.

Issue Details

Copied from: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1459677
Create a new Blazor WebAssembly app using VS2022 (17.0.4)
Replace Index.razor with

@page "/"

@code {
    protected override void OnInitialized()
    {
        List<int>? list = null; // or `new List<int>()` (doesn't matter)
    } // Set breakpoint here
}

Set breakpoint at the end of the method (as denoted in the code)
Run in debug mode
When breakpoint is hit, open Watch window and enter list?.Count

EXPECTED: null is returned

ACTUAL: Microsoft.VisualStudio.Shared.VSCodeDebugProtocol.ProtocolException is thrown

Also, if you try to evaluate the statement in “Immediate Window”, it will just return an empty line.

Author: thaystg
Assignees: thaystg, ilonatommy
Labels:

untriaged, area-Debugger-mono

Milestone: -

@lewing lewing added this to the 7.0.0 milestone May 10, 2022
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label May 10, 2022
@radical radical added the arch-wasm WebAssembly architecture label May 10, 2022
@ghost
Copy link

ghost commented May 10, 2022

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details
  1. Copied from: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1459677
  2. Create a new Blazor WebAssembly app using VS2022 (17.0.4)
  3. Replace Index.razor with
@page "/"

@code {
    protected override void OnInitialized()
    {
        List<int>? list = null; // or `new List<int>()` (doesn't matter)
    } // Set breakpoint here
}
  1. Set breakpoint at the end of the method (as denoted in the code)
  2. Run in debug mode
  3. When breakpoint is hit, open Watch window and enter list?.Count

EXPECTED: null is returned

ACTUAL: Microsoft.VisualStudio.Shared.VSCodeDebugProtocol.ProtocolException is thrown

Also, if you try to evaluate the statement in “Immediate Window”, it will just return an empty line.

Author: thaystg
Assignees: thaystg, ilonatommy
Labels:

arch-wasm, area-Debugger-mono

Milestone: 7.0.0

@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label May 13, 2022
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Jun 8, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Jul 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-Debugger-mono
Projects
None yet
4 participants