I have been trying to debug SQL Server 2005 stored procedures, in Visual Studio Team System 2008.
I connected to the database server and did a right-click "Execute", on the stored procedure. I even tried "Step Into Stored Procedure", with no luck.
(source: googlepages.com)
The IDE shows it is running, but I can not seem to break or step into the stored procedure.
(source: googlepages.com)
I have checked the event viewer and there are no logs. There are no output or messages showing where the problem is.
Visual studio contains the following components :-
(source: googlepages.com)
Loads of forums mention debugging issues, but no simple solution were found.
Am I missing something ? Or does anyone know of a more concise site, that walks through successfull stored procedure debugging ?
To debugging SP, go to database->Programmability->Stored Procedures-> right click the procedure you want to debug->select Debug Procedure.
You can start the debugger by either clicking the Debug button on the Query toolbar or by clicking Start Debugging on the Debug menu or pressing ALT+F5.
Press the drop-down arrow on the green arrow button in the Transact-SQL editor toolbar and select Execute with Debugger to execute the query with debugging on. Alternately, you can start debugging from SQL Server Object Explorer.
Check this, specially the remote debugging part: http://www.dbazine.com/sql/sql-articles/cook1
For other general information on debugging sql check http://msdn.microsoft.com/en-us/library/zefbf0t6.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With