Debugging a Program With dbx

Process ID

You can attach a running process to dbx using the process_id (pid) as an argument to the dbx command.


$ dbx your_program_name pid

You can also attach to a process using its process ID number without knowing the name of the program:


$ dbx- pid

Because the program name remains unknown to dbx, you cannot pass arguments to the process in a run type command.