进入dll不可能(pdb可用) [英] Step into dll not possible (pdb available)

查看:164
本文介绍了进入dll不可能(pdb可用)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个很多项目的解决方案,其中一些位于解决方案之外(我将已编译的dll和pdb作为Postcopy事件复制到xcopy)!



如果我想进入dll,它们位于我的解决方案之外:


断点当前不会被打。没有符号已经加载
这个文件





  • 所有文件(dll的+ pdb的+ exe)在同一目录中

  • 源文件位于不同的地方

  • 进入内部DLL可能



需要哪些步骤来调试外部dll?

解决方案

最简单的解释是DLL还没有加载。使用Debug + Windows +模块窗口仔细检查您的假设,找到要在列表中尝试调试的DLL。



如果是,那么调试器在读取PDB文件时有问题。通过右键单击DLL并单击符号加载信息进行诊断。它显示调试器查找PDB文件的位置。



请注意使用托管调试器调试本机代码或其他方式。不清楚,因为您忘记了要尝试调试哪种类型的代码。如果是这样,您需要启用混合模式调试。


I have a solution with many projects and some of them are located outside of the solution path (I copy the compiled dll's and pdb's as Post-build event with xcopy)!

If I want to step into the dll's they are located outside of my solution:

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

  • all files (dll's + pdb's + exe) are in the same directory
  • source files are at different places
  • step into to the internal dll's is possible

Which steps are needed to be able to debug also the external dll's?

解决方案

The simplest explanation is that the DLL simply isn't loaded yet. Double-check your assumptions with the Debug + Windows + Modules window, locate the DLL you are trying to debug in the list.

If it is there then the debugger has a problem reading the PDB file for it. Diagnose that by right-clicking the DLL and click Symbol Load Information. It shows you where the debugger looked for the PDB file.

Watch out for using a managed debugger to debug native code or the other way around. It isn't clear since you forgot to document what kind of code you are trying to debug. You'll need to enable mixed mode debugging if that's the case.

这篇关于进入dll不可能(pdb可用)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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