How do I debug CMakeLists.txt files?

前端 未结 5 1397
既然无缘
既然无缘 2020-11-29 19:52

Is there a possibility to debug CMakeLists.txt files (at least listing of variables) except for the message statement?

5条回答
  •  无人及你
    2020-11-29 20:45

    You can try using the new CMake Script Debugger provided by the VisualGDB tool. It uses an open-source fork of CMake that supports stepping through CMakeLists.txt files, setting code/data breakpoints, evaluating/changing variables, etc.

    There's a detailed step-by-step tutorial on the new debugger here

提交回复
热议问题