Fejlfinding i C++-applikationer på VxWorks-enheder
Bemærk: Placer alle biblioteksafhængigheder på SD-kortet. Fejlfinding fungerer ikke fra andre placeringer, såsom et monteret NFS-bibliotek.
Qt Creator Kopierer kun applikationsbinærfilerne og andre filer, der kan implementeres, til roden af SD-kortet. Det bevarer eller opretter ikke mappestrukturen på SD-kortet.
For at fejlfinde Qt-applikationer skal du tilføje følgende linje til din VxWorks Source Build (VSB)-konfiguration:
vxprj vsb config -s -add "_WRS_CONFIG_TCF_GDB_RSP=y"
For automatisk at starte GDB-serveren på enheden skal du tilføje følgende linjer til din VxWorks-billedprojektkonfiguration (VIP):
"INCLUDE_DEBUG_AGENT" "INCLUDE_DEBUG_AGENT_START" "INCLUDE_STANDALONE_SYM_TBL"
Se Qt for VxWorks for yderligere oplysninger.
Sådan konfigureres fejlfinding:
- Aktivér et VxWorks-kit til projektet.
- Gå til " Projects " > " Run Settings".
- Indstil Priority og Stack size.

- I Environment skal du indstille variablen
LD_LIBRARY_PATHtil placeringen af bibliotekerne på SD-kortet. Hvis stien til SD-kortet ikke er/sd0a, skal du indstilleVX_SDCARD_PATHtil den korrekte placering.
For at starte fejlfinding skal du trykke på F5 eller gå til Debug > Start Debugging > Start Debugging of Startup Project.
Se også Aktivér kits til et projekt, Aktiver og deaktiver plugins, Sådan gør du: VxWorks, Fejlfinding, Udvikling til VxWorks og Qt til 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.