Debug C++ applications on VxWorks devices
Note: Place all the library dependencies on the SD card. Debugging doesn't work from other locations, such as a mounted NFS directory.
Qt Creator only copies the application binaries and other deployable files to the root of the SD card. It doesn't preserve nor create the directory structure on the SD card.
To debug Qt applications, add the following line to your VxWorks source build (VSB) configuration:
vxprj vsb config -s -add "_WRS_CONFIG_TCF_GDB_RSP=y"
To automatically start the GDB server on the device, add the following lines to your VxWorks image project (VIP) configuration:
"INCLUDE_DEBUG_AGENT" "INCLUDE_DEBUG_AGENT_START" "INCLUDE_STANDALONE_SYM_TBL"
For more information, see Qt for VxWorks.
To set up debugging:
- Activate a VxWorks kit for the project.
- Go to Projects > Run.
- In Run Settings, set Priority and Stack size.
- In Environment, set the
LD_LIBRARY_PATH
variable to the location of the libraries on the SD card. If the path to the SD card is not/sd0a
, setVX_SDCARD_PATH
to the correct location.
To start debugging, press F5 or select Debug > Start Debugging > Start Debugging of Startup Project.
See also Activate kits for a project, Create kits for VxWorks devices, Debugging, and Qt for VxWorks.
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.