Is it possible to debug into a DLL with only a PDB and no source code?

前端 未结 2 615
迷失自我
迷失自我 2020-12-20 03:51

I\'m trying to debug an exe that calls a dll, in Visual Studio. I made sure I had the corresponding pdb in the same path as the dll.

But I cannot get into the functi

2条回答
  •  猫巷女王i
    2020-12-20 04:20

    No, you need to have source code to be able to see the source code.

    pdb (or /Z7) contains debug information which is like mapping between executable code and your source code. With pdb VS debugger knows where in source files each instruction is located, but it still needs to have source files to show you the code.

    Usually pdb file stores location of source files and VS debugger knows where to find them. If you move src files somewhere else then AFAIK VS will show a popup dialog to browse for .c/.cpp file that it cannot find.

提交回复
热议问题