Felsök CMake-projektfiler

Med implementeringen av Debug Adapter Protocol (DAP) i Qt Creator kan du felsöka CMake-projektfiler.

Obs! Du behöver CMake 3.27 eller senare för DAP.

Så här felsöker du CMake-projektfiler:

  1. I läget ” Edit ” sätter du brytpunkter i en CMake-fil.
  2. Gå till ” Debug ” > ” Start Debugging ” > ” Start CMake Debugging ”.

    Vyn ”DAP CMake Preset” i felsökningsläget

Debug När applikationen stannar vid en brytpunkt kan du granska data i vyerna i felsökningsläget.

Se även Så här gör du: Felsökning, Felsökning, Felsökare och 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.