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 - Visual Studio Tutorial
From the course: Visual Studio: Advanced Debugging Tools
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
-
-
-
-
-
-
(Locked)
Debug multithreaded code2m 47s
-
(Locked)
Run the sample application3m 51s
-
(Locked)
Examine the sample application code8m 22s
-
(Locked)
Overview of the thread debug windows1m 54s
-
(Locked)
Debug with the Threads window3m 21s
-
(Locked)
See worker threads in the Threads window3m 3s
-
(Locked)
Show threads icons in the source editor1m 13s
-
(Locked)
Debug with the parallel watch2m 12s
-
(Locked)
Identify threads with custom names and Flags3m 3s
-
(Locked)
View the Thread call stack1m 37s
-
(Locked)
Examine the modified code for Parallel Stack1m 50s
-
(Locked)
Use the Parallel Stack window4m 6s
-
(Locked)
Conditional breakpoints from Thread ID2m 53s
-
(Locked)
Freeze and thaw threads2m 22s
-
(Locked)
-
-
-