久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

未加載符號文件以在 Visual Studio 2012 中調試自定義

Symbol file not loading for debugging custom project in Visual Studio 2012(未加載符號文件以在 Visual Studio 2012 中調試自定義項目)
本文介紹了未加載符號文件以在 Visual Studio 2012 中調試自定義項目的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我在 Visual Studio 2012 中有一個大型解決方案,其中包含可執行文件和類庫項目.調試應用程序時,不會命中某個特定類庫項目中的斷點.

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 窗口以檢查該項目的符號狀態,它顯示無法找到或打開 PDB 文件".
它還在 用戶代碼" 列下顯示 否".
我注意到解決方案中的其他一些自定義項目在該列中顯示否",并且它們的符號也無法加載.用戶代碼"下帶有是"的任何內容似乎都已加載它的 pdb 沒有問題.但我不確定這是否相關.

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.

該模塊絕對不在符號加載的排除列表中.

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

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

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".

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

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.

很明顯,問題在于錯誤消息的無法打開 pdb"部分.

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

我已經在 2 臺計算機上嘗試過這個,并且都表現出相同的行為.

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

任何人都可以提供任何關于從這里去哪里的建議,也許為什么地球上對應于 dll 的構建 pdb 不會為它加載?

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?

推薦答案

我嘗試了一些工具來檢查 pdb 和 dll 是否真正匹配,并使用 chkmatch 我可以看到正在運行的 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.

事實證明,盡管項目的 obj 文件夾中的 dll 和 pdb 是匹配的,但實際上通過構建后事件復制到應用程序目標文件夾的 dll 是先前構建中的舊 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.

構建后事件在該特定項目構建或至少完成構建之前運行,并且正在從 bin 中復制現有 dll,隨后被繼續構建覆蓋.

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.

我已通過編輯解決方案的項目依賴項并確保具有構建后事件的項目依賴于未加載的項目,現在 pdb 在調試期間加載,從而解決了該問題.

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.

這篇關于未加載符號文件以在 Visual Studio 2012 中調試自定義項目的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

相關文檔推薦

Is there a way to know if someone has bookmarked your website?(有沒有辦法知道是否有人為您的網站添加了書簽?)
Use of Different .Net Languages?(使用不同的 .Net 語言?)
Is there a C# library that will perform the Excel NORMINV function?(是否有執行 Excel NORMINV 函數的 C# 庫?)
Determining an #39;active#39; user count of an ASP.NET site(確定 ASP.NET 站點的“活動用戶數)
Select x random elements from a weighted list in C# (without replacement)(從 C# 中的加權列表中選擇 x 個隨機元素(無需替換))
Best way to keep track of current online users(跟蹤當前在線用戶的最佳方式)
主站蜘蛛池模板: 日本三级播放 | 亚洲精品成人av | 亚洲综合在线视频 | 午夜影院视频 | 热re99久久精品国99热观看 | 青草青草久热精品视频在线观看 | 一级欧美一级日韩片免费观看 | 日韩一区二区三区在线观看 | 一级做a爰片性色毛片 | 久久久久国产精品午夜一区 | 中文字幕在线观看成人 | 二区亚洲 | 黄视频网站免费观看 | 国产精品日产欧美久久久久 | 国产美女视频黄 | 毛片黄片免费看 | 鲁一鲁资源影视 | 精品日韩在线 | 精品国产乱码久久久 | hsck成人网 | 免费看国产精品视频 | 一区二区三区久久久 | 国产美女免费视频 | 久久出精品 | 午夜精品福利视频 | 欧美男人天堂 | 米奇7777狠狠狠狠视频 | a级免费黄色片 | 夜夜草导航 | 天天射天天操天天干 | 日韩中文字幕一区二区 | 国产精品国产三级国产aⅴ浪潮 | 精品视频一区二区 | 久久国产精品视频观看 | 伊人网站在线观看 | 国产一区二区三区在线视频 | 亚洲午夜久久久 | 天天躁日日躁xxxxaaaa | 免费在线看黄视频 | 国内自拍第一页 | 中文字幕精品一区久久久久 |