开发者

Visual C++: breakpoints disabled

开发者 https://www.devze.com 2022-12-11 20:29 出处:网络
I have a \'release with debug info\' unmanaged c++ .exe (built with VS2005) deployed onto another PC, the .exe and .pdb are in the same folder.

I have a 'release with debug info' unmanaged c++ .exe (built with VS2005) deployed onto another PC, the .exe and .pdb are in the same folder.

When I try to attach to the process from VS2005, either locally or remotely from my dev PC, all my breakpoints become disabled. I don't get any warning/error popups which makes me think the PDB file is being found, but not seen as 'good'. Is that the right interpretation? I think if it couldn't see the开发者_StackOverflow中文版 PDB I'd get a "no debug information could be found" popup.

Has anyone got any ideas what can be wrong?


Check the output window - it should tell you if debug symbols are being found when the debugger attaches.

Are the breakpoints marked with a yellow exclamation mark triangle? This could be due to the PDB not corrresponding to the version of the source you're using. Right click on the breakpoint and select the option that allows the source code to be different (or rebuild your executable)

HTH

Seb


My best guess is that Visual Studio doesn't find the source code PDB files refer to. I am not able to look now, but I think you have the possibility to specify the location of the source code by hand in these cases (I don't have visual studio available at the moment).


The PDB was being generated, but another compiler setting meant nothing useful was being put inside it!

0

精彩评论

暂无评论...
验证码 换一张
取 消