PS C:\Users\dev\Desktop\cpp> cd .\build\
PS C:\Users\dev\Desktop\cpp\build> cmake .. -DCMAKE_BUILD_TYPE=Debug
-- Building for: Ninja
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/gnu/msys64/mingw64/bin/cc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/gnu/msys64/mingw64/bin/c++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- 12.2.0
-- Configuring done (1.3s)
-- Generating done (0.0s)
-- Build files have been written to: C:/Users/dev/Desktop/cpp/build
PS C:\Users\dev\Desktop\cpp\build> cmake --build .
[2/2] Linking CXX executable C:\Users\dev\Desktop\cpp\bin\hello.exe
打开cpp项目
![](https://img2023.cnblogs.com/blog/859364/202304/859364-20230402124742734-448478540.png)
找到cpp文件
![](https://img2023.cnblogs.com/blog/859364/202304/859364-20230402124749531-1765664607.png)
debug target
![](https://img2023.cnblogs.com/blog/859364/202304/859364-20230402124755381-1559394214.png)
![](https://img2023.cnblogs.com/blog/859364/202304/859364-20230402124800973-183762905.png)
debugging
![](https://img2023.cnblogs.com/blog/859364/202304/859364-20230402124810723-1321134692.png)
register
![](https://img2023.cnblogs.com/blog/859364/202304/859364-20230402124816625-80778718.png)
local
![](https://img2023.cnblogs.com/blog/859364/202304/859364-20230402124823587-1843406521.png)
goto def
![](https://img2023.cnblogs.com/blog/859364/202304/859364-20230402124830409-689098378.png)