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.

Debug with the Threads window

Debug with the Threads window - Visual Studio Tutorial

From the course: Visual Studio: Advanced Debugging Tools

Start my 1-month free trial

Debug with the Threads window

- In the sample code, I still have the same break points I showed you in the last video. They're set on the ChargeBatteries methods. Think what we'll look at in this video is how the thread windows work in a single threaded application so, I'll press A. And then we'll start by looking at these three windows, and in particular I want to call your attention to the yellow arrow. Now, what happens in a dotted application when you hit a breakpoint in visual studio, is it doesn't matter when you have one thread, or 20 threads running. All your threads are suspended. And then, visual studio indicates to you, which was the current thread that was running that code with the yellow arrow. Now, I'm in a single threaded application, so it's on the main thread shown at the very top of this window. Dot net occasionally creates other threads. It could create a garbage collection thread. I'm not sure what this worker thread is doing…

Contents