SlideShare uma empresa Scribd logo
1 de 17
2ª Reunião Presencial Comunidade Portuguesa de SharePoint 12/06/2010
   Agenda Session goals Definition How hard can it be? Screen dumps Logs Code debug Web debug Runtime & kernel debug
Session goals Debugging overview Debug tools Where to go from here
   Definition In wikipedia: Debuggingis a methodical process of finding and reducing the number of bugs, or defects, in a computer program or a piece of electronic hardware, thus making it behave as expected. … it involves numerous aspects, including: interactive debugging, control flow, integration testing, log files, monitoring, memory dumps, Statistical Process Control, and special design tactics to improve detection while simplifying changes.
   Definition In wikipedia: Debuggingis a methodical process of finding and reducing the number of bugs, or defects, in a computer program or a piece of electronic hardware, thus making it behave as expected. … it involves numerous aspects, including: interactive debugging, control flow, integration testing, log files, monitoring, memory dumps, Statistical Process Control, and special design tactics to improve detection while simplifying changes.
   Bottom line Debug = Solve a problem Techniques + Tools = gather information
Debug: How hard can it be?
Depends on how it was built...
Screen dumps Setup your web.config
Logs Event logs (eventvwr) IIS Logs (c:indowsystem32ogfiles..) ULS (...2ogs) Custom logs (i.e. Ent. Lib.)
Code debug Visual studio w/ code solution Attach the right process: W3wp Owstimer
Webdebug Soap toolkit tracer (deprecated but very usefull) Fiddler Wireshark (protocol analizer)
Runtime debug: kernel output Messages are thrown to the kernel Any tool can plug into the kernel and read the messages Sysinternals Debug view
Runtimedebug: kernel (windbg) Attach directly to a process Identify process with windbg Main commands .loadby sos mscorwks Sxe clr !g (F5) !pe !do | !da !dso -clrstack –a !analize
Toolbox (some tools) MS windbg (http://www.microsoft.com/whdc/devtools/debugging/default.mspx)  Sysinternals tools: process explorer, debug view (http://live.sysinternals.com) Fiddler (http://www.fiddler2.com/fiddler2/)  Soap Trace Utility (http://www.microsoft.com/downloads/details.aspx?familyid=c943c0dd-ceec-4088-9753-86f052ec8450&displaylang=en)  Please fill IN!!
Further reading Tess Ferrandez (http://blogs.msdn.com/b/tess/)  Production Debugging for .NET Framework Applications (P&P) http://msdn.microsoft.com/en-us/library/ee817663.aspx http://www.microsoft.com/whdc/DevTools/Debugging/default.mspx Debugger How-Tos Driver Tip: Debugging Windows Vista   Improve Driver Debugability   1394 Kernel Debugging Tips and Tricks [WinHEC 2004; 373 KB]  Advanced Driver Debugging [336 KB]   Driver Debugging Basics [WinHEC 2007; 633 KB]   Debugging Kernel-Mode Driver Framework Drivers   Debugging User-Mode Driver Framework Drivers Training Sessions   Debugging Tools for Windows (MSDN)   HOWTO: Enable Verbose Debug Tracing in Various Drivers and Subsystems (314743)   WDK Online: Tools for Debugging Drivers
2ª Reunião Presencial Comunidade Portuguesa de SharePoint 12/06/2010

Mais conteúdo relacionado

Semelhante a Spug pt session2 - debuggingl

How We Analyzed 1000 Dumps in One Day - Dina Goldshtein, Brightsource - DevOp...
How We Analyzed 1000 Dumps in One Day - Dina Goldshtein, Brightsource - DevOp...How We Analyzed 1000 Dumps in One Day - Dina Goldshtein, Brightsource - DevOp...
How We Analyzed 1000 Dumps in One Day - Dina Goldshtein, Brightsource - DevOp...
DevOpsDays Tel Aviv
 
Crash dump analysis - experience sharing
Crash dump analysis - experience sharingCrash dump analysis - experience sharing
Crash dump analysis - experience sharing
James Hsieh
 
Continuous Integration and development environment approach
Continuous Integration and development environment approachContinuous Integration and development environment approach
Continuous Integration and development environment approach
Aleksandr Tsertkov
 

Semelhante a Spug pt session2 - debuggingl (20)

How We Analyzed 1000 Dumps in One Day - Dina Goldshtein, Brightsource - DevOp...
How We Analyzed 1000 Dumps in One Day - Dina Goldshtein, Brightsource - DevOp...How We Analyzed 1000 Dumps in One Day - Dina Goldshtein, Brightsource - DevOp...
How We Analyzed 1000 Dumps in One Day - Dina Goldshtein, Brightsource - DevOp...
 
101 apend. troubleshooting tools v2
101 apend. troubleshooting tools v2101 apend. troubleshooting tools v2
101 apend. troubleshooting tools v2
 
Works on My Machine Syndrome
Works on My Machine SyndromeWorks on My Machine Syndrome
Works on My Machine Syndrome
 
4.9 apend troubleshooting tools v2
4.9 apend troubleshooting tools v24.9 apend troubleshooting tools v2
4.9 apend troubleshooting tools v2
 
Crash dump analysis - experience sharing
Crash dump analysis - experience sharingCrash dump analysis - experience sharing
Crash dump analysis - experience sharing
 
Dot Net Application Monitoring
Dot Net Application MonitoringDot Net Application Monitoring
Dot Net Application Monitoring
 
Stating the obvious - 121 Test Automation Day, Dublin, 2018
Stating the obvious - 121 Test Automation Day, Dublin, 2018Stating the obvious - 121 Test Automation Day, Dublin, 2018
Stating the obvious - 121 Test Automation Day, Dublin, 2018
 
C# Production Debugging Made Easy
 C# Production Debugging Made Easy C# Production Debugging Made Easy
C# Production Debugging Made Easy
 
Semantic logging with etw and slab from DCC 10/16
Semantic logging with etw and slab from DCC 10/16Semantic logging with etw and slab from DCC 10/16
Semantic logging with etw and slab from DCC 10/16
 
Application Logging Good Bad Ugly ... Beautiful?
Application Logging Good Bad Ugly ... Beautiful?Application Logging Good Bad Ugly ... Beautiful?
Application Logging Good Bad Ugly ... Beautiful?
 
Ibm bpm problem determination
Ibm bpm problem determinationIbm bpm problem determination
Ibm bpm problem determination
 
Computers in management
Computers in managementComputers in management
Computers in management
 
Production debugging web applications
Production debugging web applicationsProduction debugging web applications
Production debugging web applications
 
Continuous Integration and development environment approach
Continuous Integration and development environment approachContinuous Integration and development environment approach
Continuous Integration and development environment approach
 
MSMDC_CLI363
MSMDC_CLI363MSMDC_CLI363
MSMDC_CLI363
 
Two-For-One Talk: Malware Analysis for Everyone
Two-For-One Talk: Malware Analysis for EveryoneTwo-For-One Talk: Malware Analysis for Everyone
Two-For-One Talk: Malware Analysis for Everyone
 
An Introduction To Android
An Introduction To AndroidAn Introduction To Android
An Introduction To Android
 
1 Win7 For Devs Fund Search
1 Win7 For Devs Fund Search1 Win7 For Devs Fund Search
1 Win7 For Devs Fund Search
 
Self-Aware Applications: Automatic Production Monitoring (NDC Sydney 2017)
Self-Aware Applications: Automatic Production Monitoring (NDC Sydney 2017)Self-Aware Applications: Automatic Production Monitoring (NDC Sydney 2017)
Self-Aware Applications: Automatic Production Monitoring (NDC Sydney 2017)
 
Diagnosing WordPress: What to do when things go wrong
Diagnosing WordPress: What to do when things go wrongDiagnosing WordPress: What to do when things go wrong
Diagnosing WordPress: What to do when things go wrong
 

Mais de Comunidade Portuguesa de SharePoiint

Mais de Comunidade Portuguesa de SharePoiint (7)

SPugPt Meeting 35: Manage govern and drive adoption of share point online wit...
SPugPt Meeting 35: Manage govern and drive adoption of share point online wit...SPugPt Meeting 35: Manage govern and drive adoption of share point online wit...
SPugPt Meeting 35: Manage govern and drive adoption of share point online wit...
 
SP24 S055 SharePointToolbox by Rodrigo Pinto
SP24 S055 SharePointToolbox by Rodrigo PintoSP24 S055 SharePointToolbox by Rodrigo Pinto
SP24 S055 SharePointToolbox by Rodrigo Pinto
 
André Vala - User License Enforcement em SharePoint 2013
André Vala - User License Enforcement em SharePoint 2013André Vala - User License Enforcement em SharePoint 2013
André Vala - User License Enforcement em SharePoint 2013
 
Spug pt linqtosharepoint
Spug pt linqtosharepointSpug pt linqtosharepoint
Spug pt linqtosharepoint
 
Spug pt session3 - csp
Spug pt session3 - cspSpug pt session3 - csp
Spug pt session3 - csp
 
Spug pt Guidelines
Spug pt GuidelinesSpug pt Guidelines
Spug pt Guidelines
 
SpugRIA
SpugRIASpugRIA
SpugRIA
 

Último

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 

Último (20)

Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 

Spug pt session2 - debuggingl

  • 1. 2ª Reunião Presencial Comunidade Portuguesa de SharePoint 12/06/2010
  • 2. Agenda Session goals Definition How hard can it be? Screen dumps Logs Code debug Web debug Runtime & kernel debug
  • 3. Session goals Debugging overview Debug tools Where to go from here
  • 4. Definition In wikipedia: Debuggingis a methodical process of finding and reducing the number of bugs, or defects, in a computer program or a piece of electronic hardware, thus making it behave as expected. … it involves numerous aspects, including: interactive debugging, control flow, integration testing, log files, monitoring, memory dumps, Statistical Process Control, and special design tactics to improve detection while simplifying changes.
  • 5. Definition In wikipedia: Debuggingis a methodical process of finding and reducing the number of bugs, or defects, in a computer program or a piece of electronic hardware, thus making it behave as expected. … it involves numerous aspects, including: interactive debugging, control flow, integration testing, log files, monitoring, memory dumps, Statistical Process Control, and special design tactics to improve detection while simplifying changes.
  • 6. Bottom line Debug = Solve a problem Techniques + Tools = gather information
  • 7. Debug: How hard can it be?
  • 8. Depends on how it was built...
  • 9. Screen dumps Setup your web.config
  • 10. Logs Event logs (eventvwr) IIS Logs (c:indowsystem32ogfiles..) ULS (...2ogs) Custom logs (i.e. Ent. Lib.)
  • 11. Code debug Visual studio w/ code solution Attach the right process: W3wp Owstimer
  • 12. Webdebug Soap toolkit tracer (deprecated but very usefull) Fiddler Wireshark (protocol analizer)
  • 13. Runtime debug: kernel output Messages are thrown to the kernel Any tool can plug into the kernel and read the messages Sysinternals Debug view
  • 14. Runtimedebug: kernel (windbg) Attach directly to a process Identify process with windbg Main commands .loadby sos mscorwks Sxe clr !g (F5) !pe !do | !da !dso -clrstack –a !analize
  • 15. Toolbox (some tools) MS windbg (http://www.microsoft.com/whdc/devtools/debugging/default.mspx) Sysinternals tools: process explorer, debug view (http://live.sysinternals.com) Fiddler (http://www.fiddler2.com/fiddler2/) Soap Trace Utility (http://www.microsoft.com/downloads/details.aspx?familyid=c943c0dd-ceec-4088-9753-86f052ec8450&displaylang=en) Please fill IN!!
  • 16. Further reading Tess Ferrandez (http://blogs.msdn.com/b/tess/) Production Debugging for .NET Framework Applications (P&P) http://msdn.microsoft.com/en-us/library/ee817663.aspx http://www.microsoft.com/whdc/DevTools/Debugging/default.mspx Debugger How-Tos Driver Tip: Debugging Windows Vista Improve Driver Debugability 1394 Kernel Debugging Tips and Tricks [WinHEC 2004; 373 KB] Advanced Driver Debugging [336 KB] Driver Debugging Basics [WinHEC 2007; 633 KB] Debugging Kernel-Mode Driver Framework Drivers Debugging User-Mode Driver Framework Drivers Training Sessions Debugging Tools for Windows (MSDN) HOWTO: Enable Verbose Debug Tracing in Various Drivers and Subsystems (314743) WDK Online: Tools for Debugging Drivers
  • 17. 2ª Reunião Presencial Comunidade Portuguesa de SharePoint 12/06/2010

Notas do Editor

  1. Event logs: * abrir o event viewer e mostrar alguns eventosIIS * abir o inetmgr * entrar num site e ver a localização dos seus logs * ir por file system e abrir os logsULS * abrir os logs e mostrar o tipo de informação que lá existe * abrir a central administration e mostrar a localização da configuração dos logs
  2. Sample1.aspx – mostrar um estoiro com informação.Sample1_ok.aspx – mostra página OKSample
  3. Montar um sample com vários postbacksSAMPLE3
  4. Sample2.aspx
  5. Montar um troço interessante