Налагодження файлів проектів 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.