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

Identify threads with custom names and Flags - Visual Studio Tutorial

From the course: Visual Studio: Advanced Debugging Tools

Start my 1-month free trial

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