Skip to content

[wasm][debugger] Adding test for #42421 - #89395

Merged
thaystg merged 3 commits into
dotnet:mainfrom
thaystg:thays_fix_42421_2
Jul 26, 2023
Merged

thaystg merged 3 commits into
dotnet:mainfrom
thaystg:thays_fix_42421_2

Conversation

@thaystg

@thaystg thaystg commented Jul 24, 2023 •

Copy link
Copy Markdown
Member

The test pauses on System.Threading.Tasks.Task.NotifyDebuggerOfWaitCompletionIfNecessary (part of the async machinery) when it tries to StepOut, but it shouldn't because it's non-user code, but in our debugger-tests we have the PDB of System.Private.CoreLib, because of which we don't know that this is not a user code.

In this PR I removed the pdb of SPC then it will work as expected in a real user app.

Fixes #42421

@thaystg
thaystg requested a review from radical as a code owner July 24, 2023 16:36
@ghost ghost added the area-Debugger-mono label Jul 24, 2023
@ghost ghost assigned thaystg Jul 24, 2023
@ghost

ghost commented Jul 24, 2023

Copy link
Copy Markdown

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

Issue Details

It will probably not work because we should not have the system.private.corelib.pdb in a real scenario, but we have it in the debugger tests.

Author: thaystg
Assignees: thaystg
Labels:

area-Debugger-mono

Milestone: -

@thaystg
thaystg requested a review from lewing July 24, 2023 17:29
@radical

radical commented Jul 24, 2023

Copy link
Copy Markdown
Member

It will probably not work because we should not have the system.private.corelib.pdb in a real scenario, but we have it in the debugger tests.

Why is the SPC relevant here?

@radical radical added the arch-wasm WebAssembly architecture label Jul 24, 2023
@ghost

ghost commented Jul 24, 2023

Copy link
Copy Markdown

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

Issue Details

It will probably not work because we should not have the system.private.corelib.pdb in a real scenario, but we have it in the debugger tests.

Fixes #42421

Author: thaystg
Assignees: thaystg
Labels:

arch-wasm, area-Debugger-mono

Milestone: -

@thaystg

thaystg commented Jul 24, 2023

Copy link
Copy Markdown
Member Author

It will probably not work because we should not have the system.private.corelib.pdb in a real scenario, but we have it in the debugger tests.

Why is the SPC relevant here?

Because it pauses on: "NotifyDebuggerOfWaitCompletionIfNecessary" but it shouldn't because it's a non user code, but in our debugger-tests we have the PDB of SPC, then we don't know that this is not a user code.
In this PR I removed the pdb of SPC then it will work as expected in a real user app.

@thaystg
thaystg merged commit bc23bf4 into dotnet:main Jul 26, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Aug 25, 2023
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

Development

Successfully merging this pull request may close these issues.

[wasm][debugger] Stepping out of an async method doesn't return to the call site

2 participants