SlideShare a Scribd company logo
2ª Reunião PresencialComunidade Portuguesa de SharePoint12/06/2010
   AgendaSession goalsDefinitionHow hard can it be?Screen dumpsLogsCode debugWeb debugRuntime & kernel debug
Session goalsDebugging overviewDebug toolsWhere to go from here
   DefinitionIn 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.
   DefinitionIn 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 lineDebug = Solve a problemTechniques + Tools = gather information
Debug: How hard can it be?
Depends on how it was built...
Screen dumpsSetup your web.config
LogsEvent logs (eventvwr)IIS Logs (c:\windows\system32\logfiles\...)ULS (...\12\logs)Custom logs (i.e. Ent. Lib.)
Code debugVisual studio w/ code solutionAttach the right process:W3wpOwstimer
WebdebugSoap toolkit tracer (deprecated but very usefull)FiddlerWireshark (protocol analizer)
Runtime debug: kernel outputMessages are thrown to the kernelAny tool can plug into the kernel and read the messagesSysinternals Debug view
Runtimedebug: kernel (windbg)Attach directly to a processIdentify process with windbgMain commands.loadby sos mscorwksSxe 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 readingTess Ferrandez (http://blogs.msdn.com/b/tess/) Production Debugging for .NET Framework Applications (P&P) http://msdn.microsoft.com/en-us/library/ee817663.aspxhttp://www.microsoft.com/whdc/DevTools/Debugging/default.mspxDebugger 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 PresencialComunidade Portuguesa de SharePoint12/06/2010

More Related Content

Similar to Spug pt session2 - debuggingl (20)

PPTX
How We Analyzed 1000 Dumps in One Day - Dina Goldshtein, Brightsource - DevOp...
DevOpsDays Tel Aviv
 
PPT
101 apend. troubleshooting tools v2
Acácio Oliveira
 
PPTX
Works on My Machine Syndrome
Kamran Bilgrami
 
PPT
4.9 apend troubleshooting tools v2
Acácio Oliveira
 
PDF
Crash dump analysis - experience sharing
James Hsieh
 
PPTX
Dot Net Application Monitoring
Ravi Okade
 
PPTX
Stating the obvious - 121 Test Automation Day, Dublin, 2018
Giulio Vian
 
PDF
CertsOut Checkpoint-156-587 exam dumps pdf
Dumpcollection
 
PPTX
C# Production Debugging Made Easy
Alon Fliess
 
PPTX
Semantic logging with etw and slab from DCC 10/16
Chris Holwerda
 
PPT
Application Logging Good Bad Ugly ... Beautiful?
Anton Chuvakin
 
PPTX
Ibm bpm problem determination
Long Nguyen
 
DOCX
Computers in management
Kinshook Chaturvedi
 
PPTX
Production debugging web applications
Ido Flatow
 
PPTX
Continuous Integration and development environment approach
Aleksandr Tsertkov
 
PPT
MSMDC_CLI363
mokacao
 
PPTX
Two-For-One Talk: Malware Analysis for Everyone
Paul Melson
 
PDF
An Introduction To Android
natdefreitas
 
PPTX
1 Win7 For Devs Fund Search
llangit
 
PDF
Self-Aware Applications: Automatic Production Monitoring (NDC Sydney 2017)
Dina Goldshtein
 
How We Analyzed 1000 Dumps in One Day - Dina Goldshtein, Brightsource - DevOp...
DevOpsDays Tel Aviv
 
101 apend. troubleshooting tools v2
Acácio Oliveira
 
Works on My Machine Syndrome
Kamran Bilgrami
 
4.9 apend troubleshooting tools v2
Acácio Oliveira
 
Crash dump analysis - experience sharing
James Hsieh
 
Dot Net Application Monitoring
Ravi Okade
 
Stating the obvious - 121 Test Automation Day, Dublin, 2018
Giulio Vian
 
CertsOut Checkpoint-156-587 exam dumps pdf
Dumpcollection
 
C# Production Debugging Made Easy
Alon Fliess
 
Semantic logging with etw and slab from DCC 10/16
Chris Holwerda
 
Application Logging Good Bad Ugly ... Beautiful?
Anton Chuvakin
 
Ibm bpm problem determination
Long Nguyen
 
Computers in management
Kinshook Chaturvedi
 
Production debugging web applications
Ido Flatow
 
Continuous Integration and development environment approach
Aleksandr Tsertkov
 
MSMDC_CLI363
mokacao
 
Two-For-One Talk: Malware Analysis for Everyone
Paul Melson
 
An Introduction To Android
natdefreitas
 
1 Win7 For Devs Fund Search
llangit
 
Self-Aware Applications: Automatic Production Monitoring (NDC Sydney 2017)
Dina Goldshtein
 

More from Comunidade Portuguesa de SharePoiint (7)

PPTX
SPugPt Meeting 35: Manage govern and drive adoption of share point online wit...
Comunidade Portuguesa de SharePoiint
 
PPTX
SP24 S055 SharePointToolbox by Rodrigo Pinto
Comunidade Portuguesa de SharePoiint
 
PPTX
André Vala - User License Enforcement em SharePoint 2013
Comunidade Portuguesa de SharePoiint
 
PPTX
Spug pt linqtosharepoint
Comunidade Portuguesa de SharePoiint
 
PPTX
Spug pt session3 - csp
Comunidade Portuguesa de SharePoiint
 
PPTX
Spug pt Guidelines
Comunidade Portuguesa de SharePoiint
 
SPugPt Meeting 35: Manage govern and drive adoption of share point online wit...
Comunidade Portuguesa de SharePoiint
 
SP24 S055 SharePointToolbox by Rodrigo Pinto
Comunidade Portuguesa de SharePoiint
 
André Vala - User License Enforcement em SharePoint 2013
Comunidade Portuguesa de SharePoiint
 
Spug pt linqtosharepoint
Comunidade Portuguesa de SharePoiint
 
Spug pt session3 - csp
Comunidade Portuguesa de SharePoiint
 
Ad

Recently uploaded (20)

PPTX
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
PDF
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
PPTX
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
PDF
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
PDF
LAW OF CONTRACT ( 5 YEAR LLB & UNITARY LLB)- MODULE-3 - LEARN THROUGH PICTURE
APARNA T SHAIL KUMAR
 
PPTX
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
PDF
community health nursing question paper 2.pdf
Prince kumar
 
PPTX
SPINA BIFIDA: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
PPTX
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
PDF
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 
PDF
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
PDF
CEREBRAL PALSY: NURSING MANAGEMENT .pdf
PRADEEP ABOTHU
 
PPTX
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
PDF
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
PPTX
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
PDF
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
PPTX
Growth and development and milestones, factors
BHUVANESHWARI BADIGER
 
PPTX
How to Set Maximum Difference Odoo 18 POS
Celine George
 
PDF
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
PDF
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
LAW OF CONTRACT ( 5 YEAR LLB & UNITARY LLB)- MODULE-3 - LEARN THROUGH PICTURE
APARNA T SHAIL KUMAR
 
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
community health nursing question paper 2.pdf
Prince kumar
 
SPINA BIFIDA: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
CEREBRAL PALSY: NURSING MANAGEMENT .pdf
PRADEEP ABOTHU
 
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
Growth and development and milestones, factors
BHUVANESHWARI BADIGER
 
How to Set Maximum Difference Odoo 18 POS
Celine George
 
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
Ad

Spug pt session2 - debuggingl

  • 1. 2ª Reunião PresencialComunidade Portuguesa de SharePoint12/06/2010
  • 2. AgendaSession goalsDefinitionHow hard can it be?Screen dumpsLogsCode debugWeb debugRuntime & kernel debug
  • 3. Session goalsDebugging overviewDebug toolsWhere to go from here
  • 4. DefinitionIn 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. DefinitionIn 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 lineDebug = Solve a problemTechniques + Tools = gather information
  • 7. Debug: How hard can it be?
  • 8. Depends on how it was built...
  • 10. LogsEvent logs (eventvwr)IIS Logs (c:\windows\system32\logfiles\...)ULS (...\12\logs)Custom logs (i.e. Ent. Lib.)
  • 11. Code debugVisual studio w/ code solutionAttach the right process:W3wpOwstimer
  • 12. WebdebugSoap toolkit tracer (deprecated but very usefull)FiddlerWireshark (protocol analizer)
  • 13. Runtime debug: kernel outputMessages are thrown to the kernelAny tool can plug into the kernel and read the messagesSysinternals Debug view
  • 14. Runtimedebug: kernel (windbg)Attach directly to a processIdentify process with windbgMain commands.loadby sos mscorwksSxe 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 readingTess Ferrandez (http://blogs.msdn.com/b/tess/) Production Debugging for .NET Framework Applications (P&P) http://msdn.microsoft.com/en-us/library/ee817663.aspxhttp://www.microsoft.com/whdc/DevTools/Debugging/default.mspxDebugger 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 PresencialComunidade Portuguesa de SharePoint12/06/2010

Editor's Notes

  • #11: 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
  • #12: Sample1.aspx – mostrar um estoiro com informação.Sample1_ok.aspx – mostra página OKSample
  • #13: Montar um sample com vários postbacksSAMPLE3
  • #14: Sample2.aspx
  • #15: Montar um troço interessante