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
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
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