Отладка файлов проектов CMake

С помощью реализации протокола Debug Adapter Protocol (DAP) в библиотеке Qt Creator можно отлаживать файлы проектов CMake.

Примечание: Для работы с DAPтребуется CMake версии 3.27 или более поздней.

Чтобы отлаживать файлы проектов CMake:

  1. В режиме « Edit » установите точки останова в файле CMake.
  2. Перейдите в меню « Debug » > « Start Debugging » > « Start CMake Debugging ».

    Окно «DAP CMake Preset» в режиме отладки

Когда приложение остановится на точке останова, вы сможете проанализировать данные в окнах режима « Debug ».

См. также «Как: отладка», «Отладка», «Отладчики» и «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.