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 - Visual Studio Tutorial
From the course: Visual Studio: Advanced Debugging Tools
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
-
-
-
-
-
-
-
-
(Locked)
Multiple breakpoints with Inline Breakpoints2m 38s
-
(Locked)
Enhance debug sessions with DebuggerDisplay attribute3m 52s
-
(Locked)
Recursive debugging with Parallel Watch window3m
-
(Locked)
Add breakpoints to all overloads with function breakpoints2m 17s
-
(Locked)
Use debug commands to create lists of debug data2m 1s
-
(Locked)
-