Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Breakpoints window: What does the TreeView show?

Usually when using breakpoints in Visual Studio (2008 in this example), I just see a flat list. Sometimes though, I get a tree-view for each breakpoint, as shown below (there are 26 child nodes of the expanded node). All the tree nodes refer to the same line of code, and all the optional columns display the same data for each node. I guess that they're possibly to do with threads, but what is the use of these and what do they actually show? And if they are of some use, how are you supposed to distinguish between them?

Breakpoints window http://www.freeimagehosting.net/uploads/2244242173.png

like image 278
Graham Clark Avatar asked Aug 11 '10 08:08

Graham Clark


1 Answers

In my case, it seems to relate to the AppDomains in the process being debugged. If I attach WinDbg to the process, load SOS.dll and run !DumpDomain, I can see 26 AppDomains, corresponding to the 26 tree nodes in the question. It would be nice if there was a column in the Breakpoints window that would distinguish between these!

like image 164
Graham Clark Avatar answered Nov 15 '22 09:11

Graham Clark