Trace a specific process or start a new one
masterwtrace can target an existing process by its PID or launch a new process and trace it.
- By PID: If the first argument is a number, wtrace traces that PID. Use
-cor--childrento also trace all child processes launched by that PID. - By Executable: If the first argument is not a number, wtrace attempts to start that executable with the remaining arguments.
Use -c or --children to include the process tree.
# Trace File I/O operations of the process with id 1234 and its children
wtrace -f "name >= FileIO/" -c 1234
# Start and trace the opening of the test.txt file by notepad.exe
wtrace notepad c:\temp\test.txt