When you create a launch configuration, select C/C++ QNX PDebug (Serial) as its type. This lets you configure the host portion of a serial connection. For more information, see "Launch configuration types".
When a debugging session ends, the pdebug support agent always exits. If you use qconn, you don't have to restart pdebug because it's automatically restarted by qconn with each new debugging session. However, if you're debugging over a serial link, you must either manually restart pdebug or reset the target if pdebug is launched during startup.
while true do pidin | grep -q pdebug if [ $? -ne 0 ] then echo Start pdebug pdebug /dev/ser1,115200 fi sleep 1 done