Open main menu

CDOT Wiki β

Changes

OpenMP Debugging in Visual Studio / Team Debug

699 bytes added, 17:08, 6 December 2017
Parallel Stacks window
For example, at this breakpoint of a program, here are all of the threads, as per the Threads Window:
[[File:Parallelstacks-threadsview.PNG|400px500px|center|All threads]]
And this is the corresponding Parallel Stacks Window:
[[File:Parallelstacks-stacksview.PNG|400px500px|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. A stack consists of one or more stack frames, which are represented by each of the rows inside the boxes. 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. We can also see a Method View. By clicking on the "Toggle Method View" icon on the top of the Window, we will see the current highlighted thread stack in an organization that shows the call stack for only that thread, with a focus on the method that calls the current selected stack frame, as well as the method it calls. Here is the Method View for the current thread:[[File:Parallelstacks-methodview.PNG|500px|center|Method View]]And if we double click on any of the other stack frames, it will be made the focus of the view, with the calling method below it and the called method above:
==Parallel Tasks window==
92
edits