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.

Recursive debugging with Parallel Watch window

Recursive debugging with Parallel Watch window - Visual Studio Tutorial

From the course: Visual Studio: Advanced Debugging Tools

Start my 1-month free trial

Recursive debugging with Parallel Watch window

- Earlier in this course, we looked at how to use the Parallel Watch window. And the advantage of that tool is that you can set a watch for say, a local variable. And then, when you hit a breakpoint in your code, the Parallel Watch will show you that value for every thread that's running in the application. What we're going to look at in this video is another use for that window, which is looking at values that are local variables that are inside a recursive method call. We should start by talking about what the code does. So, I got some code in this class called, "Puzzle.IsPalindrome" and it's going to determine whether this string is a palindrome. And if you don't remember what that is, a palindrome is a string that has the same letters as the first and last character. And then, the second-to-last character and the second character, so you can read it forwards or backwards. Now for the purposes of this video, spaces…

Contents