To configure your target for serial communications:
pdebug /dev/ser1 &
The target is now fully configured.
When you set up a launch configuration, select C/C++ QNX PDebug (Serial). For information about launch configurations, see the Launch Configurations Reference chapter in this guide.
After a debug session ends, you must restart pdebug on the target because pdebug always exits. If you use qconn, you don't have to restart pdebug because it will automatically restart pdebug with each new debug session. However, if you use serial debug, you must manually restart pdebug, or use the target reset if pdebug was initiated by the startup process.
The following shell script shows how to keep pdebug running so that it behaves similar to qconn:
while true do pidin | grep -q pdebug if [ $? -ne 0 ] then echo Start pdebug pdebug /dev/ser1,115200 fi sleep 1 done