So far in the Parallel Extension series, I’ve talked about:
In this post, I’ll discuss about the Debugging and Visualization Support from IDE, namely Visual Studio 2010.
When running the parallel-enabled application, you perhaps wondering the following things:
It’s really really challenging to answer those questions without a support from the IDE. Fortunately, VS2010 makes those things happen by visualizing them into an comprehensive views.
Without further due, let’s see how it works.
I’ll use the demo code as in the second post of this series about Task Parallel Library.
Step 1 – Put a break point at the Parallel.For section as following.
Step 2 – Run the application by simply click F5.
As expected, the program will stop at the breakpoint.
Step 3 – On the menu, click Debug – Windows – Parallel Tasks.
Immediately, the Parallel Tasks Windows will appear. Initially, it should show nothing on the screen.
Step 4 – Click on Step Into / F11 to begin our parallel loop.
As you can see that the Parallel Tasks windows will start to show the first task that is running and the second task is being scheduled.
Step 5 – You may click on Step Over button or F10 to continue to see the created tasks.
Step 6 – It’s also worth to note that you could set the view to parent – child view, so that you know which parent a task belong to.
Step 7 – Alternately, you could group each task by Location where the tasks are.
Do you like this feature? I hope you do .
In the subsequent post, I’ll talk more sophisticated feature about how to visualize the task / thread. Stay tuned here.
What we have cover so far? So far in the Parallel Extension series, I’ve talked about: Introduction and