WINDBG + SOS: CANNON &SHOTGUN you should include in your toolkit.

Slides:



Advertisements
Similar presentations
Advanced Troubleshooting with Debug Diagnostics on IIS 6
Advertisements

GDB Improvements for Telecom System. GDBs Strengths, Today Primary debugger for Linux Used by Eclipse for C, C++ debugging –Eclipse communicates with.
Using VHDs in Remediation Workshops. Overview Advantages Simple and robust setup Use prepared VHDs Easy to reset (copy VHD file) Easy to switch between.
Web Toolkit Julie George & Ronald Lopez 1. Requirements  Java SDK version 1.5 or later  Apache Ant is also necessary to run command line arguments 
Stored procedures and views You can see definitions for stored procedures and views in the demo databases but you can’t change them. For views, expand.
Professional Toolkit V2.0 C:\Presentations - SmartCafe_Prof_V2.0 - bsc page 1 Professional Toolkit 2.0.
CS4540 Operating System Local/Remote Windows Kernel Debugging Davion Teh | Kelvin Yeap Dillon Burton | Rodney Dulin.
Daniel Pearson David Solomon Expert Seminars SVR302.
® IBM Software Group © 2010 IBM Corporation What’s New in Profiling & Code Coverage RAD V8 April 21, 2011 Kathy Chan
® 4-2 CrossWind 4.1Overview Starting A Debugging Session Basic Debugging System-Level Debugging.
Advanced Troubleshooting with Debug Diagnostics on IIS 6 Draft 2.5 5/13/06 NameTitleGroup Microsoft Corporation.
GROUP 2 WINDOWS INTERNALS TOOLS & WINDOWS SDK DEBUGGING TOOLS David Denhollander Kevin Finkler Corey Sarnia Ailun Shen.
11 How to detect and avoid memory and resources leaks in.NET applications Fabrice MARGUERIE Independent.NET expert Microsoft MVP metaSapiens / Tuneo.
1 Tornado: An Embedded System Development Tool Maung Wynn Aung Han CIS 642, Spring 2001 Prof. Insup Lee.
T.N.C.Venkata Rangan CMD, Vishwak Solutions Pvt. Ltd. Microsoft (MSDN) Regional Director, Chennai Microsoft MVP – Windows Live Platform Living with Heterogeneity.
DEBUGGERS For CS302 Data Structures Course Slides prepared by TALHA OZ (most of the text is from
DEV450 Visual Studio: Best Practices For Debugging Managed Applications Habib Heydarian Scott Nonnenberg Program Managers Microsoft Corporation.
Creating and Running Your First C# Program Svetlin Nakov Telerik Corporation
© 2008 Zend Technologies; made available under the EPL v March 2008 PDT – The PHP Development Toolkit Assaf Almaz, PDT co-Project Leader Zend Technologies.
Logging, tracing, instrumentering, debugging og fejlfinding Instrumentation End-to-End Tracing Historical Debugging Semantic Logging.
Min Kwan Park Test Tech Lead Visual C# QA team. Fail fast To-Dos for fail fast Analyze issues Information for further action Q&A Agenda.
2 Debugging Performance Issues, Memory Issues and Crashes in.net Applications Tess Ferrandez - Norlander Support Escalation Engineer Microsoft Session.
Parallel Programming in.NET 4.0 Tasks and Threading Ingo Rammer, thinktecture
W INDOWS BLUE SCREEN OF DEATH AFTER CRASH DEBUGGING Alex Mclean Amy Valley Derek Visch.
Disclaimer The Content, Demonstration, Source Code and Programs presented here is "AS IS" without any warranty or conditions.
Architecture of.NET Framework .NET Framework ٭ Microsoft.NET (pronounced “dot net”) is a software component that runs on the Windows operating.
Creating and Running Your First C# Program Svetlin Nakov Telerik Corporation
DEV339 Best Practices for Debugging Visual Studio.NET Applications Keith Pleas Architect, Guided Design
SQL Server Crash Dump Analysis A brief tour with WinDbg and other ugly tools Pablo Álvarez Doval Debugging & Optimization Team Lead
Embedded Software SKKU 14 1 Sungkyunkwan University Tizen v2.3 Application Profiling & Debugging.
Windows Crash Dump Analysis Daniel Pearson David Solomon Expert Seminars.
FireBug. What is Firebug?  Firebug is a powerful tool that allows you to edit HTML, CSS and view the coding behind any website: CSS, HTML, DOM and JavaScript.
Chapter 0 Overview. Why you are here? Where will you go? What is this course for?
sysinternals demo sysinternals.
1 Getting Started with C++. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Visual Studio 2008.
Satisfy Your Technical Curiosity Hardcore Production Debugging Ingo Rammer
Disclaimer The Content, Demonstration, Source Code and Programs presented here is "AS IS" without any warranty or conditions.
How to implement GPOs and secure a MS Windows Environment with little to NO user awareness!?!?
Ben Watson Principal Software Engineer Shared Platform Group, Application Services Group, Microsoft Author, Writing High-Performance.NET Code.
CSE 374 Programming Concepts & Tools Hal Perkins Fall 2015 Lecture 11 – gdb and Debugging.
Software Engineering Prof. Dr. Bertrand Meyer Dr. Manuel Oriol Dr. Bernd Schoeller Chair of Software Engineering Lectures 22: Legacy Software.
Msdevcon.ru#msdevcon. ИЗ ПЕРВЫХ РУК: ДИАГНОСТИКА ПРИЛОЖЕНИЙ С ПОМОЩЮ ИНСТРУМЕНТОВ VISUAL STUDIO 2012 MAXIM GOLDIN Senior Developer, Microsoft.
. NET Debugging for the Production Environment Part 4: Common Debugging Commands Brad Linscott Premier Field Engineeringing.
Windows ® 2000 Debugging André Vachon Development Lead Windows Debuggers Microsoft Corporation.
Common Language Runtime Introduction  The common language runtime is one of the most essential component of the.Net Framework.  It acts.
November 27, 2007 Verification of a Concurrent Priority Queue Bart Verzijlenberg.
CSC 1201 LAB RULES Nouf Aljaffan (C) CSC 1201 Course at KSU.
Introduction Ken Ryall – Nokia Warren Paul – Nokia Daymon Rogers – Freescale John Cortell - Freescale.
2 Common ASP.NET production issues and how to troubleshoot them with WinDbg Tess Ferrandez - Norlander Support Escalation Engineer Microsoft Session Code:
Troubleshooting & Traceability AA201 Eric Hu, Software QA Engineer Jeanie Conner, Software QA Engineer.
Discover, Master, InfluenceSlide 1 Debugging the World Starting with the CLR Corneliu I. Tusnea Senior Consultant, Readify It works on my machine!
| © 2007 LenovoLenovo Confidential Use WinDBG Tool to Analyze BSOD —— Lenovo Service Support Training.
Introduction to Debugging the FreeBSD Kernel
Hardcore Production Debugging of.NET Applications Ingo Rammer
1/21/2018 6:52 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
CLR MD A New Swiss Army Knife tool for Advanced Debugging
Java Virtual Machine Complete subject details are available at:
EZ Positioning with SINAMICS S120 Agenda
.NET Debugging for the Production Environment
Microsoft Connect /23/ :48 AM
Debugging Discussion [troubleshooting][managed][Native]
EZ Spped with SINAMICS S120 Agenda
Enhanced Security Testing- Do Automate Debuggers
Super Charge Your Debugging in Visual Studio
.NET Debugging for the Production Environment
Building responsive apps and sites with HTML5 web workers
Introduction to Windbg
Introduction to Windbg – Part2 Symbols
Kernel Debugging with VMplayer and Windbg
Hello World Program In Visual Studio and Debugging
Presentation transcript:

WINDBG + SOS: CANNON &SHOTGUN you should include in your toolkit

Information  Windbg  Not fancy but strong  SOS  Son of strike

The Tools  SOS  Windbg Part of.NET Part of Debugging Tools, Download

We already have IDE, why Windbg  We have not IDE in Product Env  We have not source code in Product Env  Do not use windbg if you have IDE and source code

Debugging  Open executable (Ctrl + E)  Before CLR boot strap  Attach to process (F6) .detach and qd will leave process running  Open Crash dump (Ctrl + D)  Offline debugging

Dumps  Task Manager  Vista or newer  ADPlus  ProcDump

ADPlus  Vbs versus exe  Crash dump  adplus -crash -pn w3wp.exe -o c:\crashdump  Hang dump  adplus -hang -pn w3wp.exe -o c:\crashdump

Task Manager

Useful Commands  Inspecting CLR  !gcroot  !finzlizequeue  !eeheep  !dumpdomain  Meta and code  !name2ee  !dumpmt  !u  Inspecting data  !dumpheap  !dumpobject (!do)  !objsize  !dumparray  Inspecting threads  !threads  !syncblk  Clrstack  !runaway

Setting up the Windbg  srv*c:\symbols* /symbols .loadby sos mscorwks  3.5 and 2.0  loadby sos clr  4.0

Start from Dining Philosophers

Demo  html html

Conclusion  !syncblk and !clrstack are the key to dead lock

Crash

Demo  html html

Conclusion  !printexception (!pe) is key to detect exception  ~*e!clrstack always work but time cost

Scripting .foreach (name { }){<command name} .foreach(myVariable {!dumpheap -min short}){.echo myVariable;!do myVariable;.echo *************}  PowerDbg 

 Q & A  Thanks