Kbase P47952: How to generate stack traces/thread dumps from clients on Windows platforms ?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  03/05/2005 |
|
Status: Verified
GOAL:
How to generate a DrWatson trace on a PID
GOAL:
How to generate a stack trace on Windows
GOAL:
How to produce a Windows stacktrace
GOAL:
How to kill -8 a process pid on Windows
GOAL:
How to attach to a process on Windows ?
GOAL:
How do I generate a stack trace on windows using Dr Watson tool?
GOAL:
Is there a switch for Dr Watson tool that will generate runtime stack trace on windows?
FACT(s) (Environment):
Windows NT 32 Intel/Windows 2000
FIX:
** Provided that you are sure of the process PID **
From a DOS cmd shell:
1.) Enable drwatson as the default application error debugger if it is not already set. If you are not sure, running the following cmd will merely return an information message that Dr. Watson has been installed as the default application debugger:
drwtsn32 -i
2.) Note the PID of the process and run the following cmd:
drwtsn32 -p <PID>
The resulting trace will be written to the drwtsn32.log file.
Please note, this is equivalent to a kill -8 (HANGUP) on UNIX. The process will terminate.