You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[wasm][debugger] Stepping out of an async method doesn't return to the call site #42421
Stepping out, should pause at line 16 in the code below.
public static async Task TestAsyncStepOut()
15: {
16: await TestAsyncStepOut2("foobar");
}
public static async Task<int> TestAsyncStepOut2(string some)
{
var resp = await client.GetAsync("http://localhost:9400/debugger-driver.html");
Console.WriteLine($"resp: {resp}"); /// BP at this line
return 10;
}
@radical and @lewing the problem here is that we don't have a way to configure "step into external code"
as we have in Vs4Mac and VSWin, and our default is Step Into External Code, that is the reason why we are breaking on NotifyDebuggerOfWaitCompletionIfNecessary and not on TestAsyncStepOut as you expect.
If you enable Step Into External Code on VS4Mac and run the same program, the step out will stop in NotifyDebuggerOfWaitCompletionIfNecessary as in WASM Debugger.
What should we do? Change our default to not step into external code? Create the configuration and talk to VS guys and explain them how they can pass this information for us?
Activity
thaystg commentedon Sep 18, 2020
One question, can we merge #42299 and then fix this or should we fix this on #42299?
radical commentedon Sep 18, 2020
This can be done separately.
thaystg commentedon Sep 25, 2020
@radical and @lewing the problem here is that we don't have a way to configure "step into external code"

as we have in Vs4Mac and VSWin, and our default is Step Into External Code, that is the reason why we are breaking on NotifyDebuggerOfWaitCompletionIfNecessary and not on TestAsyncStepOut as you expect.
If you enable Step Into External Code on VS4Mac and run the same program, the step out will stop in NotifyDebuggerOfWaitCompletionIfNecessary as in WASM Debugger.
What should we do? Change our default to not step into external code? Create the configuration and talk to VS guys and explain them how they can pass this information for us?
lewing commentedon Sep 25, 2020
Are these settings communicated to the js debugger and how is that done?
cc @captainsafia
lewing commentedon Sep 27, 2020
@thaystg how difficult is the change assuming we know the setting?
thaystg commentedon Sep 27, 2020
I think it's easy, like 4 hours to implement, I'm planning to implement it on monday morning.
Implementing support for debug Just My Code.
7 remaining items
lewing commentedon Jul 26, 2022
Do we have a tracking issue for all the settings we would like to be able to read from vs?
thaystg commentedon Jul 27, 2022
No, but as far as I remember we have issues that should be fixed having these three parameters.
thaystg commentedon Aug 12, 2022
I'll move it to 8.0 as we didn't get the approval for the vscode-js-debug extension.
The PR on vscode-js-debug side: microsoft/vscode-js-debug#1311
lewing commentedon Jul 21, 2023
@thaystg can we get a status update here soon?
thaystg commentedon Jul 22, 2023
Sure, I'll work on it on Monday :)
Adding test for dotnet#42421
[wasm][debugger] Adding test for #42421 (#89395)