92
edits
Changes
→Parallel Stacks window
As you step to each breakpoint in your debug program, the Parallel Stacks Window will show all of the threads at that point in your program, and their call stacks.
For example, at this breakpoint of a program, here are all of the threads, as per the Threads Window:
[[File:Parallelstacks-threadsview.PNG|400px|center|All threads]]
And this is the corresponding Parallel Stacks Window:
[[File:Parallelstacks-stacksview.PNG|400px|center|All threads]]
There are a total of 7 threads. The Active one is the one with the yellow arrow in the Threads View, which is "Main Thread", and correspondingly, this active thread will have blue-highlighted boxes in the Stacks View, which represents the whole stack for that thread. The yellow arrow shows where the stack frame actually is, and we can see all of the previous stack calls for that thread. A box represents the call stack that is common for 1 or more threads, until they break off into their own individual stacks. So for the Main Thread's stack, we see that it originated in a call segment that 4 threads were part of, of which the Main Thread split off into its own segment on the left, and 3 other threads split off into another segment. The other 3 threads started in a different stack segment, as shown on the bottom right box, and got separated into two different segments.
==Parallel Tasks window==