Reputation: 446
I use VS2017 to debug my C++ app. However, when I utilize single-step debug, it will switch to some thread automatically and I only want to debug one specific thread. How could I go about doing this?
Upvotes: 3
Views: 3978
Reputation: 6436
You could try to use this extension tool:
https://marketplace.visualstudio.com/items?itemName=mayerwin.DebugSingleThread
Actually other members also post this feature request and shared some suggestions with comments here:
If possible, you could view it, but if all suggestions or workaround are not what you want to get, you could also vote and add your comment for above feature requests.
Upvotes: 0
Reputation: 1122
Breakpoints
You can configure VS2017 debugger to filter only a specific thread. Follow this msdn blog to apply one to a breakpoint. You want to filter on ThreadId.
Thread Window
Another way is through the Threads Window. Here you can view all active threads in the application.
Upvotes: 2