简体   繁体   English

从C#/ ASP.NET应用程序调试SQL CLR代码

[英]Debugging SQL CLR code from a C#/ASP.NET application

I inherited some C# code that creates a DLL that is installed on SQL Server 2005 as a SQL assembly. 我继承了一些C#代码,这些代码创建了作为SQL程序集安装在SQL Server 2005上的DLL。 The following is in the C# code, but how do I get to see this? 以下是C#代码中的内容,但是如何看到呢?

 #if DEBUG
        JbLog.getInstance().Info(LOG_LEVEL_TYPE.EXTENDED, "Page="+ iPage + ", Row=" + (row + 1));
        JbLog.getInstance().Info(LOG_LEVEL_TYPE.EXTENDED, strQry);
 #endif

But how do I use this and how do I trace through the code in the assembly without deploying? 但是,如何使用它以及如何在不部署的情况下在程序集中的代码中进行跟踪?

This code is executed when app is running in debug mode. 当应用程序在调试模式下运行时,将执行此代码。 DEBUG is default conditional compilation symbol for debug mode. DEBUG是调试模式的默认条件编译符号。 See http://msdn.microsoft.com/en-us/library/aa691095(v=vs.71).aspx 参见http://msdn.microsoft.com/zh-cn/library/aa691095(v=vs.71).aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM