pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

未加載符號(hào)文件以在 Visual Studio 2012 中調(diào)試自定義

Symbol file not loading for debugging custom project in Visual Studio 2012(未加載符號(hào)文件以在 Visual Studio 2012 中調(diào)試自定義項(xiàng)目)
本文介紹了未加載符號(hào)文件以在 Visual Studio 2012 中調(diào)試自定義項(xiàng)目的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

問(wèn)題描述

我在 Visual Studio 2012 中有一個(gè)大型解決方案,其中包含可執(zhí)行文件和類庫(kù)項(xiàng)目.調(diào)試應(yīng)用程序時(shí),不會(huì)命中某個(gè)特定類庫(kù)項(xiàng)目中的斷點(diǎn).

I have a large solution in Visual Studio 2012 which consists of executables and class library projects. When debugging the application the breakpoints in one particular class library project are not being hit.

我查看了 Debug> Windows> Modules 窗口以檢查該項(xiàng)目的符號(hào)狀態(tài),它顯示無(wú)法找到或打開 PDB 文件".
它還在 用戶代碼" 列下顯示 否".
我注意到解決方案中的其他一些自定義項(xiàng)目在該列中顯示否",并且它們的符號(hào)也無(wú)法加載.用戶代碼"下帶有是"的任何內(nèi)容似乎都已加載它的 pdb 沒(méi)有問(wèn)題.但我不確定這是否相關(guān).

I looked at the Debug> Windows> Modules window to check the status of the symbols for that project and it says "Cannot find or open the PDB file".
It also says "No" under the "User Code" column.
I notice that there are a few other of the custom projects in the solution that are showing "No" in that column and their symbols are also failing to load. Anything with a "Yes" under "User code" seems to have had it's pdb loaded no problem. But I'm not sure if this is relevant.

我在 dll 上使用了 dumpbin/headers,并且 pdb 文件的路徑存在且正確.

I have used dumpbin /headers on the dll and the path for the pdb file is present and correct.

該模塊絕對(duì)不在符號(hào)加載的排除列表中.

The module is definitely not in the exclude list for the symbol loading.

我還嘗試右鍵單擊模塊窗口中的條目,選擇 加載符號(hào)" 并導(dǎo)航到 dll 標(biāo)頭中給出的路徑.當(dāng)我選擇 pdb 時(shí),它顯示 在此文件夾中找不到匹配的符號(hào)文件".

I have also tried right clicking on the entry in the modules window, selecting "Load symbols" and navigating to the path given in the dll header. When I select the pdb it says "A matching symbol file was not found in this folder".

在我刪除這些文件夾和文件、清理解決方案、關(guān)閉它并重建整個(gè)東西后,我得到了這個(gè).pdb 肯定是與所討論的 dll 同時(shí)構(gòu)建的.

I get this after I have deleted these folders and files, cleaned the solution, closed it and rebuilt the whole thing. The pdb was definitely built at the same time as the dll in question.

很明顯,問(wèn)題在于錯(cuò)誤消息的無(wú)法打開 pdb"部分.

So clearly the problem is the "cannot open the pdb" portion of the error message.

我已經(jīng)在 2 臺(tái)計(jì)算機(jī)上嘗試過(guò)這個(gè),并且都表現(xiàn)出相同的行為.

I have tried this on 2 computers and both are exhibiting the same behaviour.

任何人都可以提供任何關(guān)于從這里去哪里的建議,也許為什么地球上對(duì)應(yīng)于 dll 的構(gòu)建 pdb 不會(huì)為它加載?

Can anyone offer any suggestions on where to go from here, and perhaps why on earth the built pdb corresponding to the dll won't load for it?

推薦答案

我嘗試了一些工具來(lái)檢查 pdb 和 dll 是否真正匹配,并使用 chkmatch 我可以看到正在運(yùn)行的 dll 中的 GUID 和 obj 文件夾中的 pdb 不匹配.

I tried a few tools to check if the pdb and the dll actually matched, and using chkmatch I could see that the GUIDs in the dll being run and the pdb in the obj folder didn't match.

事實(shí)證明,盡管項(xiàng)目的 obj 文件夾中的 dll 和 pdb 是匹配的,但實(shí)際上通過(guò)構(gòu)建后事件復(fù)制到應(yīng)用程序目標(biāo)文件夾的 dll 是先前構(gòu)建中的舊 dll.

So it turns out that although the dll and pdb in the project's obj folder are a match, the dll that was actually getting copied to the application's destination folder by a post-build event was the old dll from the previous build.

構(gòu)建后事件在該特定項(xiàng)目構(gòu)建或至少完成構(gòu)建之前運(yùn)行,并且正在從 bin 中復(fù)制現(xiàn)有 dll,隨后被繼續(xù)構(gòu)建覆蓋.

The post-build event was running before that particular project had built, or at least finished building, and was copying in the existing dll from the bin which was subsequently overwritten by the continuing build.

我已通過(guò)編輯解決方案的項(xiàng)目依賴項(xiàng)并確保具有構(gòu)建后事件的項(xiàng)目依賴于未加載的項(xiàng)目,現(xiàn)在 pdb 在調(diào)試期間加載,從而解決了該問(wèn)題.

I have resolved the problem by editing the project dependencies for the solution and ensuring that the project with the post-build event is dependent on the project that wasn't loading, and now the pdb loads during debug.

這篇關(guān)于未加載符號(hào)文件以在 Visual Studio 2012 中調(diào)試自定義項(xiàng)目的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

Is there a way to know if someone has bookmarked your website?(有沒(méi)有辦法知道是否有人為您的網(wǎng)站添加了書簽?)
Use of Different .Net Languages?(使用不同的 .Net 語(yǔ)言?)
Is there a C# library that will perform the Excel NORMINV function?(是否有執(zhí)行 Excel NORMINV 函數(shù)的 C# 庫(kù)?)
Determining an #39;active#39; user count of an ASP.NET site(確定 ASP.NET 站點(diǎn)的“活動(dòng)用戶數(shù))
Select x random elements from a weighted list in C# (without replacement)(從 C# 中的加權(quán)列表中選擇 x 個(gè)隨機(jī)元素(無(wú)需替換))
Best way to keep track of current online users(跟蹤當(dāng)前在線用戶的最佳方式)
主站蜘蛛池模板: 理化生实验室设备,吊装实验室设备,顶装实验室设备,实验室成套设备厂家,校园功能室设备,智慧书法教室方案 - 东莞市惠森教学设备有限公司 | 并网柜,汇流箱,电控设备,中高低压开关柜,电气电力成套设备,PLC控制设备订制厂家,江苏昌伟业新能源科技有限公司 | ★店家乐|服装销售管理软件|服装店收银系统|内衣店鞋店进销存软件|连锁店管理软件|收银软件手机版|会员管理系统-手机版,云版,App | 英国雷迪地下管线探测仪-雷迪RD8100管线仪-多功能数字听漏仪-北京迪瑞进创科技有限公司 | 非甲烷总烃分析仪|环控百科| 螺纹三通快插接头-弯通快插接头-宁波舜驰气动科技有限公司 | 日本东丽膜_反渗透膜_RO膜价格_超滤膜_纳滤膜-北京东丽阳光官网 日本细胞免疫疗法_肿瘤免疫治疗_NK细胞疗法 - 免疫密码 | 木材烘干机,木炭烘干机,纸管/佛香烘干设备-河南蓝天机械制造有限公司 | 德州网站开发定制-小程序开发制作-APP软件开发-「两山开发」 | 冷镦机-多工位冷镦机-高速冷镦机厂家-温州金诺机械设备制造有限公司 | 识禅_对禅的了解,从这里开始| 冷却塔减速机器_冷却塔皮带箱维修厂家_凉水塔风机电机更换-广东康明冷却塔厂家 | 锂电池生产厂家-电动自行车航模无人机锂电池定制-世豹新能源 | 软启动器-上海能曼电气有限公司| 诸城网站建设-网络推广-网站优化-阿里巴巴托管-诸城恒泰互联 | 储气罐,真空罐,缓冲罐,隔膜气压罐厂家批发价格,空压机储气罐规格型号-上海申容压力容器集团有限公司 | 家乐事净水器官网-净水器厂家「官方」| 刑事律师_深圳著名刑事辩护律师_王平聚【清华博士|刑法教授】 | 博博会2021_中国博物馆及相关产品与技术博览会【博博会】 | 天津蒸汽/热水锅炉-电锅炉安装维修直销厂家-天津鑫淼暖通设备有限公司 | 中央空调温控器_风机盘管温控器_智能_液晶_三速开关面板-中央空调温控器厂家 | 桑茶-七彩贝壳桑叶茶 长寿茶| 曙光腾达官网-天津脚手架租赁-木板架出租-移动门式脚手架租赁「免费搭设」 | 杭州可当科技有限公司—流量卡_随身WiFi_AI摄像头一站式解决方案 | 杭州门窗厂家_阳光房_包阳台安装电话-杭州窗猫铝合金门窗 | 北京网站建设首页,做网站选【优站网】,专注北京网站建设,北京网站推广,天津网站建设,天津网站推广,小程序,手机APP的开发。 | 哲力实业_专注汽车涂料汽车漆研发生产_汽车漆|修补油漆品牌厂家 长沙一级消防工程公司_智能化弱电_机电安装_亮化工程专业施工承包_湖南公共安全工程有限公司 | 恒温槽_恒温水槽_恒温水浴槽-上海方瑞仪器有限公司 | 361°官方网站| 电动液压篮球架_圆管地埋式篮球架_移动平箱篮球架-强森体育 | 护腰带生产厂家_磁石_医用_热压护腰_登山护膝_背姿矫正带_保健护具_医疗护具-衡水港盛 | 电表箱-浙江迈峰电力设备有限公司-电表箱专业制造商 | 山东活动策划|济南活动公司|济南公关活动策划-济南锐嘉广告有限公司 | 上海刑事律师|刑事辩护律师|专业刑事犯罪辩护律师免费咨询-[尤辰荣]金牌上海刑事律师团队 | 钢格板|热镀锌钢格板|钢格栅板|钢格栅|格栅板-安平县昊泽丝网制品有限公司 | 杰福伦_磁致伸缩位移传感器_线性位移传感器-意大利GEFRAN杰福伦-河南赉威液压科技有限公司 | 纯化水设备-EDI-制药-实验室-二级反渗透-高纯水|超纯水设备 | NBA直播_NBA直播免费观看直播在线_NBA直播免费高清无插件在线观看-24直播网 | 烘干设备-热泵烘干机_广东雄贵能源设备有限公司| 寮步纸箱厂_东莞纸箱厂 _东莞纸箱加工厂-东莞市寮步恒辉纸制品厂 | 深圳天际源广告-形象堆头,企业文化墙,喷绘,门头招牌设计制作专家 |