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.
Identify threads with custom names and Flags - Visual Studio Tutorial
From the course: Visual Studio: Advanced Debugging Tools
Identify threads with custom names and Flags
- [Instructor] When you have information stored in a grid with multiple rows and columns, it's useful to have tools to filter that information, sort that information, and group that information, to make it easier for you to find what you're looking for. And it's no different in Visual Studio. In the threads window, I can sort by clicking on the column header, and I group by going to this drop-down. First grouping will be by category. See all my worker threads in one category, and the main thread in another category. I thought this was interesting, you can group by location, which is another way of saying, where in the call stack is the current thread. Then press F5 to run through my code, and I'll see what do I have? I have three threads that are in thread.sleep, and I have one here that's in find gemstones. We'll look at suspended indicator later. This is useful when you're learning how to freeze and thaw threads.…
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)
-
-
-