Sign in
Jigar Mehta's Blog
Common Tasks
Blog Home
Email Blog Author
About
OK
RSS for comments
RSS for posts
Atom
Search Form
Tag Cloud
.NET
COM
DCOM
Debugging
Interop
Live Mesh
Remoting
SideBySide
Silverlight
Vista
WCF
WinDbg
Monthly Archives
Archives
December 2010
(1)
April 2009
(1)
August 2008
(1)
June 2008
(2)
May 2008
(6)
April 2008
(3)
November 2007
(7)
October 2007
(9)
September 2007
(2)
August 2007
(2)
June 2007
(4)
May 2007
(12)
April 2007
(1)
March 2007
(3)
February 2007
(3)
January 2007
(4)
December 2006
(2)
November 2006
(2)
October 2006
(1)
September 2006
(5)
Browse by Tags
MSDN Blogs
>
Jigar Mehta's Blog
>
All Tags
>
windbg
Tagged Content List
Blog Post:
Look at the operating system version and SP details from the dump in WinDbg..
Jigar-Mehta MSFT
This is a very common question, we encounter almost all the times. Just imagine a situation, we have got a memory dump from somewhere and want to see what operating system which is run there and what SP is installed.. For this, there is a very simple command. 0:001> vertarget Windows Server 2003 Version...
on
3 Jun 2008
Blog Post:
How to change value of register when doing live debugging with Windbg?
Jigar-Mehta MSFT
Windbg has not only registers reading functionality but it can also modify registers when doing live debugging.. Its really useful sometimes to modify the register values and take different path to check for particular code branch.. You can modify the register value like this.. 0:000> r @eax=0x80040005...
on
3 Jun 2008
Blog Post:
Interesting windbg command-line parameters..
Jigar-Mehta MSFT
Here is a list of few interesting command-line parameters and their mapping to interactive commands in windbg.. PS: Taken from "Advanced Windows Debugging" (the best debugging book, I have ever come across!!).. Go grab your copy! Stay tuned..
on
7 Nov 2007
Blog Post:
How to install windbg for post-mortem debugging..
Jigar-Mehta MSFT
I was looking for a way to install windbg as postmortem debugger so that everytime any process crashes or exits unexpectedly, windbg is launched automatically and I can take a look at whats happening there! Windbg has special command line option for installing it as postmortem debugger. Use following...
on
7 Nov 2007
Blog Post:
Extracting modules (EXE, DLL, and other binaries) from memory dump..
Jigar-Mehta MSFT
Yet another debugging challenge. Imagine a situation where you get a memory dump from customer and need modules (DLL, EXE, OCX etc.) to further debug.. (.NET modules can be used to look at source code by reverse engineering..) SOS.dll is at the rescue. We can use clr10\sos.dll inside windbg directory...
on
6 Nov 2007
Blog Post:
How to debug startup code for a process which is started by some other executable!
Jigar-Mehta MSFT
Yet another debugging challenge.. The problem is, we want to debug the startup code for an application which is run by some other application! e.g. I will open a console (cmd.exe) which in turn opens calc.exe and I want to debug the initial calc.exe code.. Windbg has solution to this problem! When you...
on
6 Nov 2007
Blog Post:
How to look at value of structure object who is member of Class object while debugging in WinDbg??
Jigar-Mehta MSFT
Sometimes when you debug applications, it happens that you have got the pointer to class which has few member variables including structures and another class objects! How to look at values of those inner class/structure variable's members?? So, here is the tip. Following is the code being used for demonstrating...
on
28 Oct 2007
Blog Post:
How to break in WinDbg when particular function returns specific value??
Jigar-Mehta MSFT
If you are debugging a lot, you might come across a need where you need to put a breakpoint on a function and special requirement is you need to break only when that function returns a specific value!! e.g. I am checking for CoCreateInstance method from COM library and want to break only when it returns...
on
28 Oct 2007
Blog Post:
Looking at commands supported by WinDbg extensions..
Jigar-Mehta MSFT
If you want to look at commands supported by any windbg extensions, you can follow various ways. You can use !<ext_name>.help command to see all the commands supported by that extension. Replace <ext_name> with your extension module name. (Note: This will only work if particular extension...
on
28 Oct 2007
Blog Post:
How to attach WinDbg to a service?
Jigar-Mehta MSFT
There are various ways to do this. Find the PID for process that is hosting the service. You can do this with the help of command, tasklist /svc Look for service and associated PID, then go to command prompt, into the directory where windbg is installed and give command, windbg.exe -p <ProcessID>...
on
26 Oct 2007
Blog Post:
Loading/reloading symbols for just one module..
Jigar-Mehta MSFT
Many a times it happens that from within a debugging session, we need to load / reload symbols for a particular module (Talking in context of WinDbg).. e.g. we started debugging, set normal symbol path and down the line while debugging, came to know that we need symbol for particular module. We modify...
on
25 Oct 2007
Page 1 of 1 (11 items)