PDB不匹配图像错误 [英] PDB does not match image Error

查看:2681
本文介绍了PDB不匹配图像错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试对开源项目npp-community做一些补充,但似乎不能调试。我试图调试的代码被编译成一个dll,然后链接到主项目。当设置断点时,我会收到以下错误:

I'm trying to make a few additions to an open source project, npp-community, but can't seem to debug. The code that I'm trying to debug is compiled into a dll then linked to the primary project. When setting breakpoints I get the following error :


断点当前不会被打。没有加载本文档的符号。

the breakpoint will not currently be hit. No symbols have been loaded for this document.

当我检查 debug> windows> modules 我检查符号加载信息并得到以下错误。

When I check the modules under debug>windows>modules I check symbol load information and get the following error.


PDB与映像不匹配

PDB does not match image

我已经尝试退出视觉工作室并重新启动/重新编译,但似乎并没有修复任何东西。 Google似乎给了线程,而且没有明确的答案。

I have tried exiting visual studio and restarting/recompiling but that does not seem to fix anything. Google seems to give threads that go in circles and no clear answers.

推荐答案

我有一个类似的问题,我的VS2010项目,转出现这个问题是由于项目属性 - > C / C ++ - > 输出文件 - > '程序数据库文件名'项目属性 - > 链接器 - > 调试 - > '生成程序数据库文件' >。

i have a similar issue with my VS2010 project, turn out the issue is due to mistmatch of Project properties -> C/C++ -> Output Files -> 'Program Database File name', and Project properties -> Linker -> Debugging -> 'Generate Program Database File'.

通过将程序数据库文件名更改为继承父或项目默认值来修正。

Fixed it by change the 'Program Database File name' to "inherit from parent or project default".

这篇关于PDB不匹配图像错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆