Open GraceDong opened 7 years ago
This issue can reproduce in launch a web application. Repro Steps:
Expected: The cursor should be hit the current line contains text 'host.Run();'. Actual: The cursor didn't hit any line.
Grace's issue is that the debugger isn't able to walk the call stack on the thread with the user code, hence it doesn't think there is any user code on the thread, and hence it will not select that thread.
<- (R) {"seq":46,"type":"response","request_seq":11,"success":true,"command":"stackTrace","message":"","body":{"stackFrames":[{"id":1000,"name":"[External Code]","line":0,"column":0}],"totalFrames":3}}
<- (R) {"seq":47,"type":"response","request_seq":12,"success":true,"command":"stackTrace","message":"","body":{"stackFrames":[],"totalFrames":0}}
<- (R) {"seq":48,"type":"response","request_seq":13,"success":true,"command":"stackTrace","message":"","body":{"stackFrames":[],"totalFrames":0}}
I was able to reproduce the problem. For me at least, it isn't a 100% repro - sometimes we get correct call stacks and sometimes we don't. At least so far, it seems like it is some property of the target process as to if it will give me good stacks as pretty F5 and then pause again, or detaching and reattaching produces the same results.
Environment data
dotnet --info
output:VS Code version: v1.13.1 C# Extension version: v1.12.0-beat1
Steps to reproduce
Open attached folder. hwapp.zip
Select '.NET Core Attach'.
Run 'dotnet run' command in termnal.
Press F5 to select process and start debugging.
Press 'Pause'
Expected behavior
The cursor should be hit the current line contains text 'Thread.Sleep(1000);' and Call Stack window should be as following:
Actual behavior
The cursor didn't hit any line and the Call Stack frame is incorrectly:
log.txt