Spug pt session2 - debuggingl

683 views
641 views

Published on

2 Presentation
Presentation o Rui Melo, SharePoint Consultant in Microsoft

Published in: Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
683
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • 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
  • Sample1.aspx – mostrar um estoiro com informação.Sample1_ok.aspx – mostra página OKSample
  • Montar um sample com vários postbacksSAMPLE3
  • Sample2.aspx
  • Montar um troço interessante
  • 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 />

    ×