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.
Use the Parallel Stack window - Visual Studio Tutorial
From the course: Visual Studio: Advanced Debugging Tools
Use the Parallel Stack window
- [Instructor] I have restarted the debug session. We'll be looking at three windows, parallel stacks, the threads window and also the normal call stack. So let's start by seeing what we know about the call stack in the old window. There was external code, then I had an anonymous method called through the task, that went to find gemstones, and currently I'm sitting at a break point inside robot that is battery low. I'm on thread 5592, I've set a flag so I can follow that thread. Now that we've seen that setup let's go talk about what we see in the parallel stacks, starting with external code. That's over here in this box. And you can see there is five threads here. If you look at this window there is, I think there's eight threads over here, the difference is, I believe the difference is there's some threads over here with the managed ID of zero, I think those are managed by the .net run time, and they're not…
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)
-
-
-