I m building a debugging environment with CMake in VSCode. Debugging with breakpoints works fine in Visual Studio using the same CMake. However, in VSCode, the target source file of CallStack is not normal.
来源档案的位置如下所示。
<代码>C:/Workspace/CPU_Raytracing/main.cpp
Debug console的产出如下。
Thread 1 "Renderer_Tester" hit Breakpoint 2, main () at C:/Workspace/CPU_Raytracing/main.cpp:7
7 in C:/Workspace/CPU_Raytracing/main.cpp
然而,从CallixStack通过制版获得的道路如下所示。
main(c):WorkspaceCPU_RaytracinguildCWorkspaceCPU_Raytracingmain.cpp:7)
是否有办法解决这种情况?
提前感谢。
清除CMake的海滩,或拆除建筑材料并重新启用。
视力演播室用一个CMake项目进行脱色工作。
The desired result is that when debugging via CMake from VSCode, it stops at the BreakPoint and points to the corresponding SourceCode.