vscode里面写了个项目,找了半天没办法用cmake调试,最后发现是cmake里面的set(CMAKE_BUILD_TYPE Release)
导致的,都是release模式了当然不能调试了;改成Debug就行了
参考:https://stackoverflow.com/questions/75496720/visual-studio-2022-not-showing-any-cmake-targets
vscode里面写了个项目,找了半天没办法用cmake调试,最后发现是cmake里面的set(CMAKE_BUILD_TYPE Release)
导致的,都是release模式了当然不能调试了;改成Debug就行了
参考:https://stackoverflow.com/questions/75496720/visual-studio-2022-not-showing-any-cmake-targets