Debug CMake project files

With the Qt Creator implementation of the Debug Adapter Protocol (DAP), you can debug CMake project files.

Note: You need CMake 3.27 or later for DAP.

To debug CMake project files:

  1. In the Edit mode, set breakpoints in a CMake file.
  2. Select Debug > Start Debugging > Start CMake Debugging.

    {DAP CMake Preset view in the Debug mode}

When the application stops at a breakpoint, you can examine data in the Debug mode views.

See also Debugging, Examining Data, Debug Mode Views, Setting Breakpoints, and CMake.

© 2024 The Qt Company Ltd. 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.