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

Examine the modified code for Parallel Stack - Visual Studio Tutorial

From the course: Visual Studio: Advanced Debugging Tools

Start my 1-month free trial

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