What is Visual Studio’s 2012 Code Map All About? – Site Home – MSDN Blogs

 

What is Code Map?

Back in Nov 2012, in Visual Studio 2012 Update 1 a new feature named Code Map was introduced in Ultimate edition. The feature allowed visualization of relationships in code. Here’s a short video that will help you understand the concept behind Code Map.

Beginning Visual Studio 2012 Update 2, Microsoft has extended Code Map with debugging support allowing us to visualize code relationship as you step through the code in debugging session. Consider the Windows Phone code below where on a button click event a call is made to a web service to request population for Pakistan. Once the result is obtained a confirmation message is shown to the user. However during testing we identified that the confirmation message is shown before the response is actually retrieved so we’ll debug the code with Code Map to evaluate the issue.

Code Map: How To?

To explore Code Map debugging feature, set the breakpoint on Button click handler and as soon as the breakpoint is hit, bring forth the code map window by either of following,

–       By selecting Code Map button from toolbar

–       Choosing Show Call Stack on Code Map from Debug menu

–       Pressing Ctrl + Shift + `

You’ll see something like this,

More: What is Visual Studio’s 2012 Code Map All About? – Microsoft Pakistan Community Blog – Site Home – MSDN Blogs
More information on code map: http://msdn.microsoft.com/en-us/library/vstudio/dn194476.aspx

Appreciate your comments...