1. 首先修改CMakelist。txt中的build类型
set( CMAKE_BUILD_TYPE "Debug" )
2. 点击run->configure Launches, 点击add,添加你需要debug的文件,设置excutable, 之后点之记应用,ok。
3. 点击current launch configuration选择你要debug的文件
4. 设置断点开始debug
5. 调试中的数据查看
点击最左边的边框中的variables,如图:
1. 首先修改CMakelist。txt中的build类型
set( CMAKE_BUILD_TYPE "Debug" )
2. 点击run->configure Launches, 点击add,添加你需要debug的文件,设置excutable, 之后点之记应用,ok。
3. 点击current launch configuration选择你要debug的文件
4. 设置断点开始debug
5. 调试中的数据查看
点击最左边的边框中的variables,如图: