Attaching debugger to a running program
![](/sites/default/files/docs/mpich/userguide/previous.jpg)
![](/sites/default/files/docs/mpich/userguide/up.jpg)
![](/sites/default/files/docs/mpich/userguide/next.jpg)
Up: Debugging MPI programs Next: Related tools Previous: Starting the debugger when an error occurs
On workstation clusters, you can often attach a debugger to a running
process.
For example, the debugger dbx often accepts a process id (pid)
which you can get by using the ps command. The form is either
dbx a.out pidor
dbx -pid pid a.out
![](/sites/default/files/docs/mpich/userguide/previous.jpg)
![](/sites/default/files/docs/mpich/userguide/up.jpg)
![](/sites/default/files/docs/mpich/userguide/next.jpg)
Up: Debugging MPI programs Next: Related tools Previous: Starting the debugger when an error occurs