如何在dll项目中调试 [英] How to debug inside the dll project

查看:118
本文介绍了如何在dll项目中调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用dll的网站的源代码。我反编译了dll并获得了源代码。现在我想调试dll,无论何时在网站中使用它都意味着每当我们使用dll时网站和控件来了它它应该带我到DLL代码。

解决方案

编译时,你得到一个调试和发布文件夹(如果设置是正确的)。获取dll的调试版本(注意它应该比发布版本稍大一些)。



使用调试dll作为需要调试的项目中的参考你应该能够进入那个dll。



希望这会有所帮助。



PS:这个假设dll是一个.Net程序集,我不确定它是否适用于非托管代码,例如。


只需通过以下文章就可以得到解决方案。

http://msdn.microsoft.com/en-us/library/ms164704.aspx [ ^ ]

i have the source code of a website which is using a dll.I decompiled the dll and got the source code.Now i want to debug the dll where ever it is being used in the website means whenever we use the dll in website and control comes over it it should take me to the dll code.

解决方案

When you compile you get a debug and release folder (if settings are correct). Take the debug version of the dll (notice it should be a bit larger then the release version).

Use that debug dll as a reference in the project you need debugging and you should be able to step into that dll.

Hope this helps.

PS: This is assuming that dll is a .Net assembly, I'm not sure if it will work with unmanaged code eg.


Just go through the below article you can get your solution .
http://msdn.microsoft.com/en-us/library/ms164704.aspx[^]


这篇关于如何在dll项目中调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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