0

I'm wondering if there's a way to debug a stored procedure at the time it's called from .NET code? What are my possibilities?

I'm using Visual Studio 2013 Community Edition and SQL Server 2014

1
  • You can use a sql profiler to see the complete stored procedure call and then call directly in sql management studio to debug it. Commented Jul 7, 2015 at 11:58

1 Answer 1

1

I have managed to figure it out myself.

It's quite similar to what you can find in VS 2010.

  1. I had to import database as a project to my solution.
  2. Turn on SQL Debugging in my application project properties.
  3. Re-open my project.
  4. Connect to my SQL Database through SQL Server Object Explorer.
  5. Right click on my SQL Server I connected to earlier and check "application debugging".
  6. Find SP I wanted to debug, double click on it, set my breakpoint (it says it will not be hit, but eventually it will).
  7. Launch my application using debugger.

Everything now works as expected, the debugger stops at my breakpoint with no problem.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.