Depurar aplicaciones en C++ en dispositivos VxWorks

Nota: Coloca todas las dependencias de las bibliotecas en la tarjeta SD. La depuración no funciona desde otras ubicaciones, como un directorio NFS montado.

Qt Creator solo copia los binarios de la aplicación y otros archivos de implementación en la raíz de la tarjeta SD. No conserva ni crea la estructura de directorios en la tarjeta SD.

Para depurar aplicaciones Qt, añade la siguiente línea a la configuración de tu compilación de código fuente de VxWorks (VSB):

vxprj vsb config -s -add "_WRS_CONFIG_TCF_GDB_RSP=y"

Para iniciar automáticamente el servidor GDB en el dispositivo, añade las siguientes líneas a la configuración de tu proyecto de imagen de VxWorks (VIP):

"INCLUDE_DEBUG_AGENT"
"INCLUDE_DEBUG_AGENT_START"
"INCLUDE_STANDALONE_SYM_TBL"

Para obtener más información, consulta Qt para VxWorks.

Para configurar la depuración:

  1. Activa un kit de VxWorks para el proyecto.
  2. Ve a « Projects » > « Run Settings ».
  3. Configure Priority y Stack size.

    Configuración de ejecución de VxWorks

  4. En « Environment », configura la variable « LD_LIBRARY_PATH » con la ubicación de las bibliotecas en la tarjeta SD. Si la ruta a la tarjeta SD no es /sd0a, configura « VX_SDCARD_PATH » con la ubicación correcta.

Para iniciar la depuración, pulsa F5 o ve a « Debug » > « Start Debugging » > « Start Debugging of Startup Project ».

Véase también «Activar kits para un proyecto», «Habilitar y deshabilitar complementos», «Cómo: VxWorks», «Depuración», «Desarrollo para VxWorks» y «Qt para 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.