From the course: Visual Studio: Advanced Debugging Tools

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Show threads icons in the source editor

Show threads icons in the source editor - Visual Studio Tutorial

From the course: Visual Studio: Advanced Debugging Tools

Start my 1-month free trial

Show threads icons in the source editor

- [Instructor] All of the available threads for this application are shown in the threads window, and as we've seen, the yellow arrow indicates that this is the thread that was running the code when the breakpoint was hit. And we can see the matching yellow arrow in the code editor. Of course, there are other threads running at the moment, and I can't see where they are in the source code unless I know to click on this toggle button. That's called Show Threads in Source. So let's click on that, and then you'll see over in the gray margin, there are these indicators. So this is the thread indicator, and I can see that shown here, here, and here, so there's, this is a line of code that's going to run if I step through my code, but I can also see that one of the threads was sitting here at line 34, getting ready to set the foreground color, and one of the threads was somewhere in this thread.sleep call, and if I want to know…

Contents