Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
2ª Reunião Presencial<br />Comunidade Portuguesa de SharePoint<br />12/06/2010<br />
   Agenda<br />Session goals<br />Definition<br />How hard can it be?<br />Screen dumps<br />Logs<br />Code debug<br />Web...
Session goals<br />Debugging overview<br />Debug tools<br />Where to go from here<br />
   Definition<br />In wikipedia:<br />Debuggingis a methodical process of finding and reducing the number of bugs, or defe...
   Definition<br />In wikipedia:<br />Debuggingis a methodical process of finding and reducing the number of bugs, or defe...
   Bottom line<br />Debug = Solve a problem<br />Techniques + Tools = gather information<br />
Debug: How hard can it be?<br />
Depends on how it was built...<br />
Screen dumps<br />Setup your web.config<br />
Logs<br />Event logs (eventvwr)<br />IIS Logs (c:windowssystem32logfiles...)<br />ULS (...12logs)<br />Custom logs (i.e. E...
Code debug<br />Visual studio w/ code solution<br />Attach the right process:<br />W3wp<br />Owstimer<br />
Webdebug<br />Soap toolkit tracer (deprecated but very usefull)<br />Fiddler<br />Wireshark (protocol analizer)<br />
Runtime debug: kernel output<br />Messages are thrown to the kernel<br />Any tool can plug into the kernel and read the me...
Runtimedebug: kernel (windbg)<br />Attach directly to a process<br />Identify process with windbg<br />Main commands<br />...
Toolbox (some tools)<br />MS windbg (http://www.microsoft.com/whdc/devtools/debugging/default.mspx) <br />Sysinternals too...
Further reading<br />Tess Ferrandez (http://blogs.msdn.com/b/tess/) <br />Production Debugging for .NET Framework Applicat...
2ª Reunião Presencial<br />Comunidade Portuguesa de SharePoint<br />12/06/2010<br />
Upcoming SlideShare
Loading in …5
×

Spug pt session2 - debuggingl

765 views

Published on

2 Presentation
Presentation o Rui Melo, SharePoint Consultant in Microsoft

Published in: Education
  • Be the first to comment

  • Be the first to like this

Spug pt session2 - debuggingl

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

×