admin管理员组

文章数量:1403438

I used Visual Studio 2022 to build a Debug x64 executable from a VS solution/project written in C.

In Solution properties I selected /ZI flag and /DEBUG flag to tell the compiler and the linker to generate a PDB symbol file. So far so good.

When I run the built executable as standalone, attach the VS debugger and break into it, I can't see the source code lines in order to set a breakpoint at.

Is there a way to generate a PDB symbol file with all the info needed to point the debugger to the relevant source code line ?

本文标签: Visual Studio 2022 generate PDB symbol file with complete debugging infoStack Overflow