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

Contenu connexe

Tendances

Cis 170 Education Organization / snaptutorial.com
Cis 170 Education Organization / snaptutorial.comCis 170 Education Organization / snaptutorial.com
Cis 170 Education Organization / snaptutorial.comBaileya126
 
CIS 170 Exceptional Education - snaptutorial.com
CIS 170   Exceptional Education - snaptutorial.comCIS 170   Exceptional Education - snaptutorial.com
CIS 170 Exceptional Education - snaptutorial.comDavisMurphyB33
 
Cis 170 c Enhance teaching / snaptutorial.com
Cis 170 c  Enhance teaching / snaptutorial.comCis 170 c  Enhance teaching / snaptutorial.com
Cis 170 c Enhance teaching / snaptutorial.comHarrisGeorg51
 
CIS 170 Achievement Education--cis170.com
CIS 170 Achievement Education--cis170.comCIS 170 Achievement Education--cis170.com
CIS 170 Achievement Education--cis170.comagathachristie170
 
Unit testing, UI testing and Test Driven Development in Visual Studio 2012
Unit testing, UI testing and Test Driven Development in Visual Studio 2012Unit testing, UI testing and Test Driven Development in Visual Studio 2012
Unit testing, UI testing and Test Driven Development in Visual Studio 2012Jacinto Limjap
 
CIS 170 Inspiring Innovation -- cis170.com
CIS 170 Inspiring Innovation -- cis170.comCIS 170 Inspiring Innovation -- cis170.com
CIS 170 Inspiring Innovation -- cis170.comkopiko104
 
CIS 170 Effective Communication - tutorialrank.com
CIS 170 Effective Communication - tutorialrank.comCIS 170 Effective Communication - tutorialrank.com
CIS 170 Effective Communication - tutorialrank.comBartholomew19
 
CIS 170 Life of the Mind/newtonhelp.com   
CIS 170 Life of the Mind/newtonhelp.com   CIS 170 Life of the Mind/newtonhelp.com   
CIS 170 Life of the Mind/newtonhelp.com   llflowe
 
How to become a Super Productive Developer
How to become a Super Productive DeveloperHow to become a Super Productive Developer
How to become a Super Productive DeveloperAbhishek Sur
 
CIS 170 Become Exceptional--cis170.com
CIS 170 Become Exceptional--cis170.comCIS 170 Become Exceptional--cis170.com
CIS 170 Become Exceptional--cis170.comclaric131
 
Cis 170 Extraordinary Success/newtonhelp.com
Cis 170 Extraordinary Success/newtonhelp.com  Cis 170 Extraordinary Success/newtonhelp.com
Cis 170 Extraordinary Success/newtonhelp.com amaranthbeg143
 
Csharp Hands On Lab Paul Yao
Csharp Hands On Lab Paul YaoCsharp Hands On Lab Paul Yao
Csharp Hands On Lab Paul YaoMamgmo Magnda
 
CIS 170 Inspiring Innovation/tutorialrank.com
 CIS 170 Inspiring Innovation/tutorialrank.com CIS 170 Inspiring Innovation/tutorialrank.com
CIS 170 Inspiring Innovation/tutorialrank.comjonhson110
 

Tendances (18)

Cis 170 Education Organization / snaptutorial.com
Cis 170 Education Organization / snaptutorial.comCis 170 Education Organization / snaptutorial.com
Cis 170 Education Organization / snaptutorial.com
 
CIS 170 Exceptional Education - snaptutorial.com
CIS 170   Exceptional Education - snaptutorial.comCIS 170   Exceptional Education - snaptutorial.com
CIS 170 Exceptional Education - snaptutorial.com
 
Cis 170 c Enhance teaching / snaptutorial.com
Cis 170 c  Enhance teaching / snaptutorial.comCis 170 c  Enhance teaching / snaptutorial.com
Cis 170 c Enhance teaching / snaptutorial.com
 
CIS 170 Achievement Education--cis170.com
CIS 170 Achievement Education--cis170.comCIS 170 Achievement Education--cis170.com
CIS 170 Achievement Education--cis170.com
 
Unit testing, UI testing and Test Driven Development in Visual Studio 2012
Unit testing, UI testing and Test Driven Development in Visual Studio 2012Unit testing, UI testing and Test Driven Development in Visual Studio 2012
Unit testing, UI testing and Test Driven Development in Visual Studio 2012
 
CIS 170 Inspiring Innovation -- cis170.com
CIS 170 Inspiring Innovation -- cis170.comCIS 170 Inspiring Innovation -- cis170.com
CIS 170 Inspiring Innovation -- cis170.com
 
Debugging in .Net
Debugging in .NetDebugging in .Net
Debugging in .Net
 
CIS 170 Effective Communication - tutorialrank.com
CIS 170 Effective Communication - tutorialrank.comCIS 170 Effective Communication - tutorialrank.com
CIS 170 Effective Communication - tutorialrank.com
 
Vb introduction.
Vb introduction.Vb introduction.
Vb introduction.
 
CIS 170 Life of the Mind/newtonhelp.com   
CIS 170 Life of the Mind/newtonhelp.com   CIS 170 Life of the Mind/newtonhelp.com   
CIS 170 Life of the Mind/newtonhelp.com   
 
How to become a Super Productive Developer
How to become a Super Productive DeveloperHow to become a Super Productive Developer
How to become a Super Productive Developer
 
CIS 170 Become Exceptional--cis170.com
CIS 170 Become Exceptional--cis170.comCIS 170 Become Exceptional--cis170.com
CIS 170 Become Exceptional--cis170.com
 
Cis 170 Extraordinary Success/newtonhelp.com
Cis 170 Extraordinary Success/newtonhelp.com  Cis 170 Extraordinary Success/newtonhelp.com
Cis 170 Extraordinary Success/newtonhelp.com
 
visual basic programming
visual basic programmingvisual basic programming
visual basic programming
 
Why Unit Testingl
Why Unit TestinglWhy Unit Testingl
Why Unit Testingl
 
Csharp Hands On Lab Paul Yao
Csharp Hands On Lab Paul YaoCsharp Hands On Lab Paul Yao
Csharp Hands On Lab Paul Yao
 
CIS 170 Inspiring Innovation/tutorialrank.com
 CIS 170 Inspiring Innovation/tutorialrank.com CIS 170 Inspiring Innovation/tutorialrank.com
CIS 170 Inspiring Innovation/tutorialrank.com
 
Unit Testing 101
Unit Testing 101Unit Testing 101
Unit Testing 101
 

Similaire à Debugging application using visual studio 2010 and intellitrace

Better User Experience with .NET
Better User Experience with .NETBetter User Experience with .NET
Better User Experience with .NETPeter Gfader
 
.NET Debugging Tips and Techniques
.NET Debugging Tips and Techniques.NET Debugging Tips and Techniques
.NET Debugging Tips and TechniquesBala Subra
 
Test Driven Development (TDD) Preso 360|Flex 2010
Test Driven Development (TDD) Preso 360|Flex 2010Test Driven Development (TDD) Preso 360|Flex 2010
Test Driven Development (TDD) Preso 360|Flex 2010guest5639fa9
 
Test Driven Development (TDD) with FlexUnit 4 - 360|Flex San Jose preso
Test Driven Development (TDD) with FlexUnit 4 - 360|Flex San Jose presoTest Driven Development (TDD) with FlexUnit 4 - 360|Flex San Jose preso
Test Driven Development (TDD) with FlexUnit 4 - 360|Flex San Jose presoElad Elrom
 
Getting started with code composer studio v3.3 for tms320 f2812
Getting started with code composer studio v3.3 for tms320 f2812Getting started with code composer studio v3.3 for tms320 f2812
Getting started with code composer studio v3.3 for tms320 f2812Pantech ProLabs India Pvt Ltd
 
Debugger & Profiler in NetBeans
Debugger & Profiler in NetBeansDebugger & Profiler in NetBeans
Debugger & Profiler in NetBeansHuu Bang Le Phan
 
What's new in visual studio 2017
What's new in visual studio 2017What's new in visual studio 2017
What's new in visual studio 2017MD. Shohag Mia
 
Membangun Desktop App
Membangun Desktop AppMembangun Desktop App
Membangun Desktop AppFajar Baskoro
 
Grasping The LightSwitch Paradigm
Grasping The LightSwitch ParadigmGrasping The LightSwitch Paradigm
Grasping The LightSwitch ParadigmAndrew Brust
 
Unit Testing in Flutter - From Workflow Essentials to Complex Scenarios
Unit Testing in Flutter - From Workflow Essentials to Complex ScenariosUnit Testing in Flutter - From Workflow Essentials to Complex Scenarios
Unit Testing in Flutter - From Workflow Essentials to Complex ScenariosFlutter Agency
 
Tips and Tricks for Using Visual Studio.Net Effectively
Tips and Tricks for Using Visual Studio.Net EffectivelyTips and Tricks for Using Visual Studio.Net Effectively
Tips and Tricks for Using Visual Studio.Net Effectivelyweili_at_slideshare
 
COM 211 PRESENTATION.pptx
COM 211 PRESENTATION.pptxCOM 211 PRESENTATION.pptx
COM 211 PRESENTATION.pptxAnasYunusa
 

Similaire à Debugging application using visual studio 2010 and intellitrace (20)

Better User Experience with .NET
Better User Experience with .NETBetter User Experience with .NET
Better User Experience with .NET
 
VS 2010 codename Rosario
VS 2010 codename RosarioVS 2010 codename Rosario
VS 2010 codename Rosario
 
.NET Debugging Tips and Techniques
.NET Debugging Tips and Techniques.NET Debugging Tips and Techniques
.NET Debugging Tips and Techniques
 
Test Driven Development (TDD) Preso 360|Flex 2010
Test Driven Development (TDD) Preso 360|Flex 2010Test Driven Development (TDD) Preso 360|Flex 2010
Test Driven Development (TDD) Preso 360|Flex 2010
 
Test Driven Development (TDD) with FlexUnit 4 - 360|Flex San Jose preso
Test Driven Development (TDD) with FlexUnit 4 - 360|Flex San Jose presoTest Driven Development (TDD) with FlexUnit 4 - 360|Flex San Jose preso
Test Driven Development (TDD) with FlexUnit 4 - 360|Flex San Jose preso
 
Getting started with code composer studio v3.3 for tms320 f2812
Getting started with code composer studio v3.3 for tms320 f2812Getting started with code composer studio v3.3 for tms320 f2812
Getting started with code composer studio v3.3 for tms320 f2812
 
Debugger & Profiler in NetBeans
Debugger & Profiler in NetBeansDebugger & Profiler in NetBeans
Debugger & Profiler in NetBeans
 
Python and test
Python and testPython and test
Python and test
 
myslide1
myslide1myslide1
myslide1
 
myslide6
myslide6myslide6
myslide6
 
NewSeriesSlideShare
NewSeriesSlideShareNewSeriesSlideShare
NewSeriesSlideShare
 
Coded ui test
Coded ui testCoded ui test
Coded ui test
 
What's new in visual studio 2017
What's new in visual studio 2017What's new in visual studio 2017
What's new in visual studio 2017
 
Membangun Desktop App
Membangun Desktop AppMembangun Desktop App
Membangun Desktop App
 
Grasping The LightSwitch Paradigm
Grasping The LightSwitch ParadigmGrasping The LightSwitch Paradigm
Grasping The LightSwitch Paradigm
 
Unit Testing in Flutter - From Workflow Essentials to Complex Scenarios
Unit Testing in Flutter - From Workflow Essentials to Complex ScenariosUnit Testing in Flutter - From Workflow Essentials to Complex Scenarios
Unit Testing in Flutter - From Workflow Essentials to Complex Scenarios
 
Fakes
FakesFakes
Fakes
 
Tips and Tricks for Using Visual Studio.Net Effectively
Tips and Tricks for Using Visual Studio.Net EffectivelyTips and Tricks for Using Visual Studio.Net Effectively
Tips and Tricks for Using Visual Studio.Net Effectively
 
COM 211 PRESENTATION.pptx
COM 211 PRESENTATION.pptxCOM 211 PRESENTATION.pptx
COM 211 PRESENTATION.pptx
 
Intro To AOP
Intro To AOPIntro To AOP
Intro To AOP
 

Plus de Abhimanyu Singhal

Containerization with Microsoft Azure
Containerization with Microsoft AzureContainerization with Microsoft Azure
Containerization with Microsoft AzureAbhimanyu Singhal
 
Azure Functions & Serverless Computing
Azure Functions & Serverless ComputingAzure Functions & Serverless Computing
Azure Functions & Serverless ComputingAbhimanyu Singhal
 
Opportunity: Data, Analytic & Azure
Opportunity: Data, Analytic & Azure Opportunity: Data, Analytic & Azure
Opportunity: Data, Analytic & Azure Abhimanyu Singhal
 
Unit testing with visual studio 2012
Unit testing with visual studio 2012Unit testing with visual studio 2012
Unit testing with visual studio 2012Abhimanyu Singhal
 
Project management with team foundation server 11
Project management with team foundation server 11Project management with team foundation server 11
Project management with team foundation server 11Abhimanyu Singhal
 
Unit testing and test driven development using vs
Unit testing and test driven development using vsUnit testing and test driven development using vs
Unit testing and test driven development using vsAbhimanyu Singhal
 
Unit testing and test driven development using vs
Unit testing and test driven development using vsUnit testing and test driven development using vs
Unit testing and test driven development using vsAbhimanyu Singhal
 
Web and load testing with Visual Studio 2010 Ultimate
Web and load testing with Visual Studio 2010 UltimateWeb and load testing with Visual Studio 2010 Ultimate
Web and load testing with Visual Studio 2010 UltimateAbhimanyu Singhal
 
Database development with visual studio 2010
Database development with visual studio 2010Database development with visual studio 2010
Database development with visual studio 2010Abhimanyu Singhal
 

Plus de Abhimanyu Singhal (15)

ASP.NET Core
ASP.NET CoreASP.NET Core
ASP.NET Core
 
Containerization with Microsoft Azure
Containerization with Microsoft AzureContainerization with Microsoft Azure
Containerization with Microsoft Azure
 
Azure Functions & Serverless Computing
Azure Functions & Serverless ComputingAzure Functions & Serverless Computing
Azure Functions & Serverless Computing
 
Mobile devops
Mobile devopsMobile devops
Mobile devops
 
Opportunity: Data, Analytic & Azure
Opportunity: Data, Analytic & Azure Opportunity: Data, Analytic & Azure
Opportunity: Data, Analytic & Azure
 
Using Specflow for BDD
Using Specflow for BDDUsing Specflow for BDD
Using Specflow for BDD
 
Behavior Driven Development
Behavior Driven DevelopmentBehavior Driven Development
Behavior Driven Development
 
Unit testing with visual studio 2012
Unit testing with visual studio 2012Unit testing with visual studio 2012
Unit testing with visual studio 2012
 
Exploratory testing
Exploratory testingExploratory testing
Exploratory testing
 
Project management with team foundation server 11
Project management with team foundation server 11Project management with team foundation server 11
Project management with team foundation server 11
 
Unit testing and test driven development using vs
Unit testing and test driven development using vsUnit testing and test driven development using vs
Unit testing and test driven development using vs
 
Visual Studio ALM
Visual Studio ALMVisual Studio ALM
Visual Studio ALM
 
Unit testing and test driven development using vs
Unit testing and test driven development using vsUnit testing and test driven development using vs
Unit testing and test driven development using vs
 
Web and load testing with Visual Studio 2010 Ultimate
Web and load testing with Visual Studio 2010 UltimateWeb and load testing with Visual Studio 2010 Ultimate
Web and load testing with Visual Studio 2010 Ultimate
 
Database development with visual studio 2010
Database development with visual studio 2010Database development with visual studio 2010
Database development with visual studio 2010
 

Debugging application using visual studio 2010 and intellitrace

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