You can now debug the CLR Stored Procedure the same way as
the T-SQL Stored Procedure.
Following are the steps used to debug it.
In the Solution Explorer, right click the Test Scripts and
Add Test Script; Test1.sql is added.
Rename it to MyManagedProcedure.sql.
Now you add the following code.
Listing 12
DECLARE @sal float
DECLARE @cnt int
SET @sal = 2200
SET @cnt = 0
EXECUTE [ManagedStoredProcedure].[dbo].[MyManagedProcedure]
@sal
,@cnt OUTPUT
Print @cnt
Set the break point in the code.
Open Server Explorer View > Server Explorer.
Right Click Database and Apply Allow SQL/CLR Debugging
Debug > Start Debugging. The Yellow Pointer appears at
the break point.
You can view the Output.