简体   繁体   中英

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. The following is in the C# code, but how do I get to see this?

 #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. See http://msdn.microsoft.com/en-us/library/aa691095(v=vs.71).aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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