Sign in
Debugging Toolbox
Windbg scripts, debugging and troubleshooting tools and techniques to help you isolate software problems.
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Tags
ASP
Books
Breakpoints
Call Stack
Crash
Disassembly
Exceptions
Hang
Heap Corruption
High CPU
Interview
Just For Fun
Magic Pointers
Memory Leak
Modules
NetWiz Tool
PE Headers
Performance Bottlenecks
Performance Monitor
Personal
PowerDbg Library
PowerDbg Scripts
PowerShell Scripts
Random Thoughts
Read Me
Reporting Services
Serviced Components
SharePoint
Sherlock Tool
Special Commands
SQL Commands
SQL Connections
Stack Corruption
Symbols
Threads
Tracing
Troubleshooting
Windbg Scripts
Browse by Tags
MSDN Blogs
>
Debugging Toolbox
>
All Tags
>
hang
Tagged Content List
Blog Post:
Tools for Your Debugging Toolbox
rafarah
This article was just updated to include an internal Microsoft tool that is now public. There are many free tools used to troubleshoot and debug software. Below I present a list of the tools that my peers and I use most of the time. Though most of the tools below are free Microsoft tools, not all...
on
4 Oct 2012
Blog Post:
D3v3l0p3r PF3s – 0bs3rv1ng Th3m in Th31r Natural Hab1tat
rafarah
PFE has engineers who specialize in areas which can contain one or more technologies. This species is universally known as D3v PF3 (Developer PFE). Not everyone really knows their habits and role and, as a consequence, sometimes it’s hard for customers to engage them. Their specialty is problem...
on
19 May 2012
Blog Post:
Top Things to Consider When Troubleshooting Complex Application Issues
rafarah
1- For reactive incidents: “Bring the engineer onsite because it is going to be easier to isolate the problem.” This is the most common misconception I’ve heard. Let me explain: most complex problems require deep debugging sessions. Collecting the necessary information is the easy...
on
3 Oct 2011
Blog Post:
New Debugging Book – Windows Debugging Notebook: Essential User Space WinDbg Commands
rafarah
A reference book for technical support and escalation engineers troubleshooting and debugging complex software issues. The book is also invaluable for software maintenance and development engineers debugging Windows applications and services. Do you want to know more about this book? Check out...
on
29 Sep 2011
Blog Post:
[PowerShell Script] PowerDbg v6.0 – Using PowerShell to Control WinDbg
rafarah
Last October the latest version of the PowerDbg tool was released, version 6.0. This release has major changes. For example, it is now easier to write scripts or otherwise just hack around the debugger, and includes the PowerDbgConsole, a bootstrapper designed to make setting up an interactive PowerDbg...
on
28 Feb 2011
Blog Post:
PSSCOR2, the Superset of SOS.DLL is Now Public!!!
rafarah
Whenever I’m debugging with customers watching it’s inevitable: they always ask me what this PSSCOR2.dll extension is. The next question is always if PSSCOR2.DLL is going to be public. PSSCOR2.DLL is a superset of SOS.DLL and has much more commands and variations! The good news is that yes, now PSSCOR2...
on
29 Mar 2010
Blog Post:
XPerf Tool – Why Can’t You Live Without It?
rafarah
Israel Burman (Israel is one of the ADPlus creators and the guy who taught me the XPerf tool) and Mario Hewardt told me I should blog about the XPerf tool. Although I’m new to this tool I decided to follow their suggestions because I believe you’re going to wonder how you could live without using...
on
15 Mar 2010
Blog Post:
[PowerShell Script] PowerDbg v5.3—Using PowerShell to Control WinDbg
rafarah
This version has a fix in Parse-PowerDbgDSO . Thanks to Igor Dvorkin that found the bug and suggested the fix. DOWNLOAD POWERDBG Download PowerDbg POWERDBG FILES WinDbg.PSM1 ß Starting with this version this is the only file. INSTALLATION WinDbg.PSM1 Goes...
on
21 Dec 2009
Blog Post:
Special Command—Unassembling code with u, ub and uf
rafarah
When debugging sooner or later you will need to disassemble code to get a better understanding of that code. By disassembling the code, you get the mnemonics translated from the 0s and 1s that constitute the binary code. It is a low level view of the code, but a higher level than seeing just numbers...
on
5 Nov 2009
Blog Post:
Special Command—Using .dump/.dumpcab to Get Dumps and Symbols from Production Servers
rafarah
Using WinDbg you can create a dump file from an application running, for instance, in a production server. After collecting the dump file, you can load it in another machine and debug it. However, to be more effective during your debugging session you need symbols . Thus, thinking about it, here's the...
on
15 Sep 2009
Blog Post:
Special Command—CPU Time for Each Thread with !runaway
rafarah
This is one of my favorite commands! !runaway displays information about the CPU time consumed by each thread in User Mode and Kernel Mode. It is one of those commands you run when you think the application is hung with low or high CPU or has some kind of performance issue. Parameters: ...
on
19 Aug 2009
Blog Post:
[PowerShell Script] Statistics from .NET Applications
rafarah
This script is more a template to show you how to use PowerDbg. I must say the idea is from my teammate Aaron Barth! This script collects information from all threads running managed code and gives the user statistics by threads like: - CLR stack. - Managed objects from the stack. ...
on
15 Apr 2009
Blog Post:
[PowerShell Script] PowerDbg v5.2—Using PowerShell to Control WinDbg
rafarah
This version has two improvements and some scripts were changed to be compatible with this new version: - Starting on version 5.2 the log used to save the command output, enabling the communication between PowerShell and WinDbg is not used anymore. Now all communication uses memory so it’s faster...
on
15 Apr 2009
Blog Post:
[PowerShell Script] PowerDbg v5.1—Using PowerShell to Control WinDbg
rafarah
So, here we go again. This is a minor version with a few new cmdlets. These new cmdlets are those that we use most of the time. DOWNLOAD POWERDBG Download PowerDbg POWERDBG FILES WinDbg.PSM1 ß Contains cmdlets used to communicate with WinDbg . Microsoft.PowerShell_Profile...
on
19 Mar 2009
Blog Post:
Special Command—Parsing Strings, Files, and Commands Output Using .foreach
rafarah
This is by far one of the most powerful WinDbg commands. Even if you don’t create scripts, you’ll benefit from this command. It’s powerful because it’s flexible. You can use it for a huge variety of operations. The .foreach token parses the output of one or more debugger commands and uses each...
on
11 Mar 2009
Blog Post:
[PowerShell Script] PowerDbg v5.0—Using PowerShell to Control WinDbg
rafarah
I’m very excited to present the new PowerDbg v5.0! There’s just one change, but it’s a HUGE change that makes PowerDbg extremely fast and easier to use. Let me explain: Send-PowerDbgCommand is the heart of PowerDbg . This is the cmdlet that sends information to WinDbg and retrieves information...
on
3 Feb 2009
Blog Post:
[WinDbg Script] Displaying Queries/Stored Procedures from Threads Running Managed Code
rafarah
There’s another script that gives you all queries/stored procedures from SQL Server or Oracle that are stored in the managed heap. This script is more specific because it gives you the query/stored procedure running in a specific thread. It has the option to scan all threads and to display the queries...
on
1 Feb 2009
Blog Post:
[PowerShell Script] Finding Out the Managed Objects that "Leaked"
rafarah
Here in PFE most of my teammates use the same approach to identify managed objects that “leak”. The idea is to run !DumpHeap –stat once, wait several minutes to allow the “leak” to make itself evident, then run the command a second time. After that you have to select those objects that appear in both...
on
13 Nov 2008
Blog Post:
[PowerShell Script] PowerDbg v4.0 - Using PowerShell to Control WinDbg
rafarah
Good news! Here’s the newest PowerDbg library. This version is more stable and has more features. Let me tell you about them and how to install it. New Features - Send-PowerDbgCTRL-BREAK / Send-PowerDbgResumeExecution If you’re wondering why do you need these cmdlets I can see at least...
on
14 Aug 2008
Blog Post:
[PowerShell Script] PowerDbg v3.1 - Using PowerShell to Control WinDbg
rafarah
This new version has one more parser for !PrintException and a killer feature that my colleagues and myself have wanted since the beginning: PowerDbg, more specifically Send-PowerDbgCommand , which now has the ability to wait until a command finished its execution. It means no more delays to wait for...
on
4 Apr 2008
Blog Post:
[PowerShell Script] PowerDbg v2.3 - Using PowerShell to Control WinDbg
rafarah
It has been a while since my previous blog post. I’ve been busy with other tasks, including the new PowerDbg version 2.3. There’s a lot of new stuff on this new version and my estimate is that about 80% of the most used Windbg commands have been covered so far. J Let me present the new cmdlets...
on
16 Dec 2007
Page 1 of 1 (21 items)