-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Multi thread debugging: wrong Paused on Breakpoint label #29547
Comments
Actually it looks like that under C# the VM stops. Setting a breakpoint in A and B first hits one breakpoint and when pressing continue the second one is hit. So when the VM is stopped I should be able to inspect that call stacks of all threads. |
@dbaeumer great catch! |
Yeah it shuold be fixed there -> reopening to see if I can also repro with latest |
I just tried with latest insiders and I can not repro both on Win and on Mac. I believe the original issue is fixid, so pushing this one to july to see why it is not working for you |
And when you click on Thread 1 and Thread 2 they can not be expanded? |
@dbaeumer I think that is exected behavior. What would you expect there? |
@isidorn IMO the thread B is not paused on a breakpoint. Otherwise we would have a stop on line 31. But all threads are labels as "Paused on Breakpoint". Since thread B is actually running the UI should indicate that. To my knowledge a breakpoint in a multi threaded environment can either only stop the thread where the break point is hit or all threads. The UI should indicate that. |
This issue has been closed automatically because it needs more information and has not had recent activity. Please refer to our guidelines for filing issues. Thank you for your contributions. |
@dbaeumer Correct. Maybe the bot should check if the creator is from the team and in that case leave the bug open. It's not clear though if that will improve things overall. |
This is coming from the debug adapter. VS Code will show the stopped reason per thread, however the c# debug adapter gives reason "breakpoint" for each stopped thread. |
@isidorn I don't understand what you are expecting the extension to return. The debug adapter just sends one Here is an example stopped event from the C# debug adapter: {
"seq": 27,
"type": "event",
"event": "stopped",
"body": {
"reason": "breakpoint",
"threadId": 21448,
"allThreadsStopped": true,
"source": {
"name": "Program.cs",
"path": "d:\\proj\\cliasynctest\\Program.cs"
},
"line": 11,
"column": 14
}
} |
@gregg-miskelly yes you are right, the issue comes from the vscode side when we are cloning the stopped deatils in the Thus reopening and setting to august |
Tests: #29168
Steps to Reproduce:
Although the first two threads are not paused.
The text was updated successfully, but these errors were encountered: