Fejlfinding i CMake-projektfiler

Med implementeringen af Debug Adapter Protocol (DAP) i Qt Creator kan du fejlfinde CMake-projektfiler.

Bemærk: Du skal have CMake 3.27 eller nyere for at kunne bruge DAP.

Sådan fejlsøger du CMake-projektfiler:

  1. I Edit -tilstand skal du indstille breakpoints i en CMake-fil.
  2. Gå til " Debug " > " Start Debugging " > " Start CMake Debugging".

    Visning af DAP CMake-forudindstilling i fejlfindingsmodus

Når applikationen stopper ved et breakpoint, kan du undersøge dataene i visningerne i tilstanden " Debug ".

Se også Sådan gør du: Fejlfinding, Fejlfinding, Fejlfindingsværktøjer og 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.