在 Visual Studio 中调试第三方 DLL? [英] Debugging a third-party DLL in Visual Studio?

查看:25
本文介绍了在 Visual Studio 中调试第三方 DLL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用第三方 DLL.对于某些特定情况,DLL 中的函数会引发异常.是否可以在 Visual Studio 中调试 DLL?

I am using a third-party DLL. For some particular cases, a function in the DLL is throwing an exception. Is it possible to debug the DLL in the Visual Studio?

安德鲁·罗林斯的回答之后,我可以查看代码,但是有没有什么简单的方法可以在 Visual Studio 中调试代码?

After the answer from Andrew Rollings, I am able to view the code, but is there any easy way to debug through the code in Visual Studio?

推荐答案

如果 DLL 在 中.NET 语言,你可以使用像 .NET Reflector 这样的工具反编译它,然后针对源代码进行调试.

If the DLL is in a .NET language, you can decompile it using a tool like .NET Reflector and then debug against the source code.

或者您可以询问供应商是否提供源代码.这可能是最简单的方法.

Or you could ask the vendor if source code is available. That's probably the easiest way.

这篇关于在 Visual Studio 中调试第三方 DLL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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