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.
Examine the modified code for Parallel Stack - Visual Studio Tutorial
From the course: Visual Studio: Advanced Debugging Tools
Examine the modified code for Parallel Stack
- [Instructor] Earlier in this chapter, I said that Visual Studio does not have a parallel call stack window. That is a true statement, but there is a related window called parallel stacks that is a rethinking of how you show call stack information to a developer who's debugging multiple threads. That's what we'll look at in this part of the chapter. But first, let's talk about the changes I made in the source code. I wanted to be able to drill deeper into the call stack, so I modified Find Gemstones and added a method called Find Gem, Update Battery, and Robot Finished, and within those methods, I added some thread dot sleep calls and some break points. Next, let's take a look at how you get the window configured before you actually do the debugging. I'll start debugging, press C. We already have our threads window available. If you want to see the parallel stacks, go to debug, windows, parallel stacks. And by default…
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)
-
-
-