Skip to content

How to procdump

Updated: at 09:30 AM

Use this for an easy way of when/how to use procdump

Please replace 999 from the lower table with the PID of your process. To get the pid you can use the Details View of the TaskManager or powershel/cm.

#ScenarioObjectiveBasic syntax
1Hang dumpCreates a dump file (process memory is saved to disk) when the tool runs.\procdump.exe -ma 999
2Crash dumpMonitors a process and creates a dump file when the process runs into an unhandled exception.\procdump.exe -ma -e 999
3Dump on exceptionMonitors a process and creates a dump file on a specific exception (i.e. any exceptions of form ArgumentNullException).\procdump.exe -ma -e 1 -f ArgumentNullException 999
4Dump on first chance exceptionMonitors a process and creates a dump file on a first chance exception.\procdump.exe -ma -e 1 999
5Monitors exceptionsMonitors a process for exceptions without taking a dump.\procdump.exe -ma -e 1 -f "" 999
6Dump on performance triggerMonitors a process and takes a hang dump when a performance trigger is hit.\procdump.exe -ma -p <Counter> <Threshold value> <process name or service or PID>