Is there something like a "debug attach" for the SQL debugger? I have a middleware tool (BizTalk) that is calling a stored procedure and would like to debug it.
As alternative I tried adding statement to insert into a trace table, but BizTalk rolls back the transaction when it fails. I've added print statements, but no way to see them when running externally. I've been using SQL_profiler which helps a little, but cannot see values of variables.
Per @Jeroen comment, I tried sp_trace_generatedevent, but only see this in the profiler. I have filter on my DBName, and have all userConfigureable events turned on.