Jahan Zaible Ghari

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Friday, 16 August 2013

Visual Studio 2013 Preview: Code Map Debugger Integration

Posted on 03:18 by Unknown
                                    5-16-2012 12-48-10 PM

Prologue

The original Code Map was introduced in the product with Visual Studio 2012 Update 1. You need to read my original post before moving on:
http://blogs.msdn.com/b/zainnab/archive/2013/02/07/visual-studio-2012-update-1-understanding-code-map.aspx

My assessment at the time was that it was a good feature but had poor performance and didn’t really add much value relative to Dependency Graphs. With debugger integration however Code Maps have definitely come into their own and the performance is very good.

Note: Code Map Debugger Integration is a feature in the Ultimate edition of Visual Studio.



Code Map Debugger Integration

Assuming you have a handle on Code Maps now let’s see how the debugger integration works. First, I’ll take the TailSpin Toys sample code and set a breakpoint within the code base (ShoppingCart.cs, line 61):
          5-16-2012 12-04-13 PM


I’ll press F5 and add an item to my cart to trigger the debugger:
          5-16-2012 12-07-12 PM


Ordinarily, we would step though the code and hope we remember how we got to a particular place. Those days are gone! Now we can turn on the Code Map feature while debugging:
           5-16-2012 12-12-27 PM


You can also find this on the Menu Bar at Debug | Show Call Stack on Code Map:
           5-16-2012 12-13-37 PM


You will see a Code Map in sync with the debugger at this point. You can create Code Maps in C#, VB, C++, JavaScript currently. Once activated all future debugging sessions will include a Code Map until you turn this feature off:
                5-16-2012 12-17-38 PM


If we take a closer look at the current map, we can see that it shows how we arrived at the current call (the squares above the last AddItem call) and our current location (yellow arrow). Although the current location indicator is partially covering it, you can also see the breakpoint indicator:
                                                                        5-16-2012 12-27-35 PM


Stepping through the code we see the map keeps updating so we don’t have to keep the path in our heads:
                                                                      5-16-2012 12-29-19 PM


The Code Map will continue to update for our debugging session showing where we have been and where we currently are in the call stack:
                                           5-16-2012 12-35-58 PM


The graphs can get quite large:
                                        5-16-2012 12-40-46 PM


For this reason it’s important to use the map tools at your disposal. The context menu items when you Right Click any node are a great example of common tools:
                                                5-16-2012 12-45-23 PM


You can Double Click any node to view the code from that location in the stack. A green arrow will indicate your current position:
                       


If you happen to choose a node that isn’t part of the current active call stack then you will get a slightly different indicator:
                    5-16-2012 12-57-41 PM


When you stop debugging the Code Map will be preserved so you can save it if desired and keep a map of the code base you just went through. I think this is an exceptional addition to the debugging experience!
-->
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in Visual Studio | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Windows 8 shortcuts: Keyboard Shortcuts-1
    List of Windows 8 Shortcuts Have you tried Microsoft’s latest Operating system Windows 8 yet? If you already tried, then you’ll find a huge ...
  • Facebook Auto Liker Without Access Token
    AUTO LIKER SITE http://fb-auto-posts-liker.blogspot.com/ Friends.... Now u can use the World's 1st Facebook Auto-Liker Without Access To...
  • Six Tips for protecting Wireless Networks-Wi-Fi
                                                                                                             With the growing presence of the te...
  • Windows Defender Free Download
    Windows Defender is software that helps protect your computer against pop-ups, slow performance, and security threats caused by spyware and ...
  • How to Hack My Space Hacking
    MySpace being one of the world’s largest social networks, has become today a favorite place for many to maintain secret relationships and ex...
  • Free Router Simulator Softwares
    If you are going to take a networking exam like CCNA, CCNP… it is better to practice with real routers. But when the budget is not big enoug...
  • WINDOWS MEDIA PLAYER FIREFOX PLUGIN 1.0.0.8 Free Download
    WINDOWS MEDIA PLAYER FIREFOX PLUGIN 1.0.0.8                                   Microsoft Corporation - 311KB (Freeware) Windows Media Player ...
  • Hacking Gmail account using GX cookie
    Introduction Hacking web application was always curious for the script kiddies. And hacking free web email account is every geek first attem...
  • Windows 7 Ultimate Highly Compressed in 10 Mb Only Free Download
    Win dows 7 Ultimate is the most versatile and powerful edition of Windows 7. It is including the ability to run many Windows XP productivity...
  • Total PDF Converter 2.1.233 + Key Free Download
    Total PDF Converter 2.1.233 + Key Total PDF Converter converts PDF files to HTML, DOC (Word), text, Excel, PostScript, CSV or image files (e...

Categories

  • Android
  • AntiVirus
  • Audio and video Players
  • Auto Cad
  • C/C++
  • CCNA
  • Converters
  • Facebook Auto Liker
  • Hacking
  • Inpage
  • Locks
  • Media players
  • MS Office
  • Nokia
  • photo Editors
  • Recovery
  • Recovery.
  • Sites Unblocker
  • Social Network
  • Softwares
  • Tricks
  • Typing Tutors
  • Ufone
  • UniversalDrivers
  • Video Editings
  • Visual Studio
  • Wifi
  • Windows

Blog Archive

  • ▼  2013 (166)
    • ►  October (1)
    • ▼  August (31)
      • Visual Studio 2013 Preview: Code Map Debugger Inte...
      • SKYPE VOICE CHANGER(AUDIO/VIDEO CHAT SUPPORTED)
      • BEST WINDOWS 8 ACTIVATOR FOR ACTIVATING VERSIONS O...
      • MS OFFICE 2013 DOWNLOAD | MS OFFICE 2013 FULL WITH...
      • µTORRENT 3.2.3.28705 FINAL FREE DOWNLOAD
      • INTERNET DOWNLOAD MANAGER IDM 7.1 WITH LIFETIME VA...
      • AVAST INTERNET SECURITY V7.0.1426 INCL LICENSE KEY...
      • Hack WiFi With WiFi Hacker 1.2 On Android Mobiles
      • WIFI HACK TOOL FOR ANDROID MOBILES 100% WORKING FR...
      • Commview Wifi Hacker v6.0.581 Full version For PC ...
      • Hack wifi/WEP/WPA2 password using aircrack-ng
      • How to Crack Wifi Or Wireless Password
      • Intranet & Internet
      • DOWNLOAD AND RESUME SUPPORTED 3G PROXY SUPPORT YOU...
      • Abstract Backgrounds Black wallpaper for personali...
      • Computer Acronyms
      • HOW TO CONNECT ANDROID INTERNET TO LINUX/BACKTRACK...
      • Windows 8 shortcuts: Keyboard Shortcuts-1
      • How to hack remote COMPUTER using IP address
      • Types of viruses
      • 70 Hacking eBook Collection
      • Hack Facebook Account With Keylogger
      • Make A Virus That Disable Mouse
      • 70 Hacking eBook Collection
      • Complete Hackers Guide
      • How To Became A Great hacker
      • The Reality Of Hacking Facebook, Gmail, Yahoo Acco...
      • TRICK TO INSTALL FACEBOOK HOME ON ANY ANDROID POWE...
      • Killer Tips To Increase traffic on your Blog
      • Trace someone in Facebook Account
      • HOW TO HIDE ALL OPENED TABS IN YOUR BROWSE WITH ON...
    • ►  July (45)
    • ►  May (3)
    • ►  April (3)
    • ►  February (13)
    • ►  January (70)
Powered by Blogger.

About Me

Unknown
View my complete profile