Open
Description
env:
VSCode 1.87.2
c/c++ v1.19.6
CMakeTools v1.17.17
cmake 3.29
clang 18.1.1
repro step:
- create any simple c/c++ project.
main.c:
#include <stdio.h>
int main(int argc, char *argv[]) {
printf("test\n");
while (1) {
}
return 0;
}
CMakeLists.txt:
cmake_minimum_required(VERSION 3.25.0)
project(x)
add_compile_options(
-gdwarf-4
)
aux_source_directory(. SRC)
add_executable(${PROJECT_NAME} ${SRC})
- switch kit
[Clang 18.1.1 x86_64-w64-windows-gnu(mingw64)]
from VSCode status bar forcmake-tools
- click debug button from VSCode status bar for
cmake-tools
cmake-tools
will start thecppvsdbg
debugger, notcppdbg
so, it does not hit the breakpoint when debugging.
switch kit to gcc
, it start the cppdbg
debugger correctly.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Pending Prioritization