Your SlideShare is downloading. ×
0
Debugging application using visual studio 2010 and intellitrace
Debugging application using visual studio 2010 and intellitrace
Debugging application using visual studio 2010 and intellitrace
Debugging application using visual studio 2010 and intellitrace
Debugging application using visual studio 2010 and intellitrace
Debugging application using visual studio 2010 and intellitrace
Debugging application using visual studio 2010 and intellitrace
Debugging application using visual studio 2010 and intellitrace
Debugging application using visual studio 2010 and intellitrace
Debugging application using visual studio 2010 and intellitrace
Debugging application using visual studio 2010 and intellitrace
Debugging application using visual studio 2010 and intellitrace
Debugging application using visual studio 2010 and intellitrace
Debugging application using visual studio 2010 and intellitrace
Debugging application using visual studio 2010 and intellitrace
Debugging application using visual studio 2010 and intellitrace
Debugging application using visual studio 2010 and intellitrace
Debugging application using visual studio 2010 and intellitrace
Debugging application using visual studio 2010 and intellitrace
Debugging application using visual studio 2010 and intellitrace
Debugging application using visual studio 2010 and intellitrace
Debugging application using visual studio 2010 and intellitrace
Debugging application using visual studio 2010 and intellitrace
Debugging application using visual studio 2010 and intellitrace
Debugging application using visual studio 2010 and intellitrace
Debugging application using visual studio 2010 and intellitrace
Debugging application using visual studio 2010 and intellitrace
Debugging application using visual studio 2010 and intellitrace
Debugging application using visual studio 2010 and intellitrace
Debugging application using visual studio 2010 and intellitrace
Debugging application using visual studio 2010 and intellitrace
Debugging application using visual studio 2010 and intellitrace
Debugging application using visual studio 2010 and intellitrace
Debugging application using visual studio 2010 and intellitrace
Debugging application using visual studio 2010 and intellitrace
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Debugging application using visual studio 2010 and intellitrace

2,701

Published on

When the unexpected happens, how do you figure out what went wrong and recover gracefully? We take a look at the debugging features and capabilities of the latest version of Visual Studio 2010. Where …

When the unexpected happens, how do you figure out what went wrong and recover gracefully? We take a look at the debugging features and capabilities of the latest version of Visual Studio 2010. Where you can take advantage of the tools to simplify and streamline the complex job of debugging software.

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
2,701
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
33
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Debugging Application Using Visual Studio 2010 and Intellitrace<br />Abhimanyu Singhal<br />Lead Consultant<br />iMentor Knowledge Services<br />
  • 2. Debugging involves finding the root cause of the problem<br />Develop-Test-Debug-Fix-Test Cycle ( Non TDD)<br />Test-Develop-Test-Debug-Fix-Test Cycle (TDD)<br />Visual Studio Debugging Introduction<br />
  • 3. How to start debugging?<br />Start Program/Test in Debug Mode<br />Attach to process<br />
  • 4. Are used to notify the debugger where and when to pause the program execution<br />Breakpoints<br />
  • 5. Demo – Breakpoints<br />
  • 6. New Feature in Visual Studio 2010<br />Used for better managing breakpoints<br />Enables group and filter breakpoints<br />Works as categorization of breakpoints<br />Is very helpful when you are debugging multiple lines of codes in a project with many files.<br />Labeling in Breakpoints<br />
  • 7. Demo – Using Breakpoint Labeling<br />
  • 8. Use when you want to pause your program on some specific condition<br />Conditions<br />Is True<br />Has Changed<br />Intellisence support in creating complex conditions<br />Conditional Breakpoints<br />
  • 9. Demo – Creating and Using Conditional Breakpoints<br />
  • 10. Allows you to save different debug scenarios in XML files<br />You can share your breakpoints with other developers on your team<br />You can save breakpoints based on search on labels<br />XML file is a collection of BreakPoints tag within BreakPointCollection<br />Each breakpoint tag contains information about breakpoint<br />Breakpoints import depends on Line Numbers<br />Breakpoints Import/Export<br />
  • 11. Demo – Using Breakpoints Import/Export<br />
  • 12. used to keep track of how many times the debugger has reached at some particular breakpoint<br />Option like to choose when the debugger will stop<br />Break always <br />Break when the hit count is equal to a specified number <br />Break when the hit count is a multiple of a specified number <br />Break when the hit count is greater than or equal to a specified number<br />Breakpoint Hit Count<br />
  • 13. Demo – Using Breakpoint Hit Count<br />
  • 14. You want to do something else while breakpoint is hit<br />Print a message<br />Run a Macro<br />Breakpoint When Hit Option<br />
  • 15. Demo – Using Breakpoint when Hit Option<br />
  • 16. Restrict the breakpoint to hit for certain processes and threads<br />Breakpoint Filter<br />
  • 17. Pin Inspect Value during debugging<br /><ul><li>Drag-Drop Pin Data Tip</li></ul>Adding Comments<br />Last Session Debug Value<br />Export/Import Data Tips<br />Change Value using Data Tips<br />Clear Data Tips<br />Clear All<br />Clear Pinned to specific file<br />Data Tips<br />
  • 18. Demo – Using Data tips<br />
  • 19. It is an investigation window<br />various types of watch windows <br />Autos<br />These variables are automatically detect by the VS debugger during the debugging.<br />Shortcut – “Ctrl+D+A”<br />Local<br />It automatically displays the list of variables within the scope of current methods<br />Watch 1……<br />Watch Windows<br />
  • 20. Demo – Using Watch Window<br />
  • 21. create an object ID for any particular instance of object<br />helpful when you want to monitor any object at any point of time even if it goes out of scope<br />To create Object Id, from watch window you need to right click on a particular object variable and then need to click on "Make Object ID". <br />Create Object ID<br />
  • 22. Demo – Using Create Object ID<br />
  • 23. Immediate window is very much common and a favorite with all developers<br />It's very much helpful in debug mode of the application<br />if you want to change the variable values <br />execute some statement without impacting your current debugging steps<br />Debug > Window > Immediate Window { Ctrl + D, I / Alt + Ctrl - I }<br />During Debug mode, you can execute any command or execute any code statement from here. <br />Immediate Window<br />
  • 24. Demo – Using Immediate Window<br />
  • 25. have multiple method calling or nested calling all over your application and during debugging<br />you want to check from where this method has invoked<br />The Call Stack Window shows current method calling nesting<br />To customize, Right Click on the "Call Stack" window, and from the context menu, you can select or deselect the option<br />Call Stack<br />
  • 26. Demo - Using Call Stack<br />
  • 27. Debugging Multithreaded Applications and Parallel Programs<br />
  • 28. Shows ThreadId, Managed Id, Category, Name, Location and Priority<br />You can expand/collapse the Thread Location and can see what is next<br />The Threads Window<br />
  • 29. What will happen if you have a huge code block with multiple number of threads…?<br />Thread window gives you very easy features to set the "Flag" for all the threads which are part of your code<br />Flag Just My Code<br />
  • 30. Break Point Filter – Multithreaded Programming<br />
  • 31. Demo - Using Threads Window<br />
  • 32. Parallel Tasks<br />Parallel Stacks<br />Parallel Programming Windows<br />
  • 33. Works as a DVR and allows you to <br />Revind and Forwarded your application’s recorded execution<br />It is also called historical debugging<br />IntelliTrace operates in the background, records what you are doing during debugging<br />Debugging with Intellitrace<br />
  • 34. Demo – Using Intellitrace<br />
  • 35. Abhimanyu Singhal<br />abhimanyu@imentor.co.in<br />@abhi_singhal<br />Thank you <br />

×