调试和编译Dll [英] Debuggging and Compiling Dll's

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

问题描述

你好,

我知道我在问一个过时的问题,但我真的很烦我.
我正在尝试调试Reporting Services Visual Studio 2008的自定义数据集Dll.
显然,在启动调试器之后,将加载Dll,并且无法直接卸载Dll.您应该使用AppDomain空间名称并将其卸载.我已经摸索了一下,但是对于我的目标而言,这已经变得很复杂了(而且我认为 其他)希望防止:文件无法被其他程序使用而被覆盖"在casu Visual Studio中,当您要将Dll复制到de Report Server目录时,以正确调试Custom DataSet.
现在,我想知道你们有一个建议,就是我如何可以毫不费力地简单调试一下f. DLL不会一直卸载/加载Visual Studio和整个项目吗?
或者,您可以描述在这种情况下(也许不是很具体)如何使用AppDomain的确切步骤吗?
鉴于此:我使用Visual Studio 2008和商业智能来创建使用自定义数据集的报告:

< CodeGroup
class ="UnionCodeGroup";
版本="1"
PermissionSetName ="FullTrust";
名称="BaanstedeCds".
描述="BaanstedeCds数据组的代码处理扩展".
<入会条件
class ="UrlMembershipCondition";
版本="1"
Url ="C:\ Program Files \ Microsoft SQL Server \ MSRS10_50.MSSQLSERVER \ Reporting Services \ ReportServer \ bin \ BaanstedeCds.dll"
/>
</CodeGroup>

所以我必须让VS2008重新加载"C:\ Program Files \ Microsoft SQL Server \ MSRS10_50.MSSQLSERVER \ Reporting Services \ ReportServer \ bin \ BaanstedeCds.dll"和"C:\ Program Files \ Microsoft SQL Server \ MSRS10_50.MSSQLSERVER \ Reporting Services \ ReportServer \ bin \ BaanstedeCds.pdb" 为了正确调试....

我的简单问题是如何以一种简单的方式做到这一点?

非常感谢您的帮助. Jos


我会回来的

解决方案

Josje,

感谢您在MSDN论坛中发帖.

据我所知,如果要调试dll,可以从以下位置开始调试:

1.用于创建调用DLL的可执行文件的项目.

2.用于创建DLL本身的项目.

似乎第二种方法就是您想要得到的.请参阅"如何:调试DLL ",希望它能对您有所帮助

最好的问候


Hi there,

I know I am asking a stale question, but i really bugs me.
I am trying to debug a&nbsp;Custom DataSet Dll for Reporting Services Visual Studio 2008.
Obviously after the debugger is started, the Dll is loaded and cannot be unloaded in a direct way. You are supposed to use a AppDomain spacename and unload that. I have fumbled about with that a little, but is far to complicated for the goal I (and I think others) want to prevent: "file cannot be overwritten, being used by another program" in casu Visual Studio, when you want to copy the Dll to de Report Server directories, in order to debug the Custom DataSet properly.
Now I wonder you guys have a suggestion how I can with little or no effort on my part to simply properly debug the f. Dll without unloading/loading Visual Studio and the entire project all the time?
Alternatively could you describe the exact steps how to use the AppDomain in this specific case (maybe not so specific)?
Given this: I use Visual Studio 2008 and Business Intelligence to create reports that use a Custom DataSet:

<CodeGroup
	class="UnionCodeGroup"
	version="1"
	PermissionSetName="FullTrust"
	Name="BaanstedeCds"
	Description="Code group voor BaanstedeCds data processing extension">
	<IMembershipCondition
	class="UrlMembershipCondition"
	version="1"
	Url="C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer\bin\BaanstedeCds.dll"
	/>
</CodeGroup>

So I have to let VS2008 reload "C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer\bin\BaanstedeCds.dll" and "C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer\bin\BaanstedeCds.pdb" in order to debug properly....

My simple question is how do I do that in an easy way?

Help would be grately appriciated. Jos


I'll be back

解决方案

Hi Josje,

Thank you for posting in the MSDN forum.

As far as I know, if you want to debug the dll, you can start debugging from:

1. The project used to create the executable that calls the DLL.

2. The project used to create the DLL itself.

It seems that the 2th way is what you want to get. See "How to: Debug DLLs", hope it could help.

Best Regards,


这篇关于调试和编译Dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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