Debug dei file di progetto CMake

Grazie all'implementazione del Debug Adapter Protocol (DAP) da parte dell'Qt Creator, è possibile eseguire il debug dei file di progetto CMake.

Nota: per il DAPè necessario CMake 3.27 o versioni successive.

Per eseguire il debug dei file di progetto CMake:

  1. In modalità " Edit ", impostare dei punti di interruzione in un file CMake.
  2. Accedere a " Debug " > " Start Debugging " > " Start CMake Debugging".

    Visualizzazione delle impostazioni predefinite DAP CMake in modalità Debug

Quando l’applicazione si ferma a un punto di interruzione, è possibile esaminare i dati nelle viste della modalità “ Debug ”.

Vedi anche : Come fare per: Debug, Debugging, Debugger e CMake.

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.