Process-level debugger


pdebug [-1aeflsv] [-n priority_levels] device

Runs on:

QNX Neutrino


("One") Exit pdebug after the debugging session is done.
(QNX Neutrino 6.6 or later) Don't disable address space layout randomization (ASLR). The default is to disable it.
Echo the debugged program's stdin back to the host.
Run pdebug as a foreground process.
("el") By default, pdebug sets the LD_BIND_NOW to 1 to force all binding to be done immediately instead of lazily. To permit lazy binding, specify the -l option. For more information, see "Optimizing the runtime linker" in the Compiling and Debugging chapter of the QNX Neutrino Programmer's Guide.
-n priority_levels
Be nice; set the debugged program's priority to be priority_levels lower than pdebug's. Doing this can keep pdebug from becoming unresponsive if the debugged process misbehaves (e.g. looping in a tight loop taking lots of CPU time).
Notify the host only of signals caused by faults.
Be verbose.
The device to use for the remote debug protocol; one of:
Use stdout / stdin.
Open and use the specified device, such as /dev/ser1, optionally setting the baud rate.
Accept connections on TCP/IP port number.


This utility provides access to process-level debugging from a remote host, including from the IDE. To use pdebug, you need to run devc-pty on the target machine (i.e. the machine being debugged).


For a 57600 baud serial connection on /dev/ser2:

pdebug /dev/ser2,57600 &

For a TCP/IP connection on port 8000:

pdebug 8000 &