Like many, I can't seem to get the settings right to hit a breakpoint in a MSSQL Stored Procedure! After following instructions from a half-dozen articles, here is my setup:
- Visual Studio 2015 Enterprise
- .\BACKEND .. SQL Server 2014 Developer
- I am sysadmin, as is the user (app pool user) running this content.
- The database project was added to this solution
- In database project properties > Debug > the Target Connection String was updated to point to the .\BACKEND database.
In SQL Server Object Explorer, I've created a connection to .\backend, enabled debugging, and set a breakpoint..
In the project from where the sproc is called, project properties > SQL Debugging is set.
The call from the project:
Database.ExecuteSqlCommand("EXEC @procResult = [dbo].[spOnlineSearchRegistrationLoad] @RegCode, @RemainingPayments OUTPUT", regCodeParam, remainingPaymentsParam, procResultParam);
On every attempt, the sproc is called but breakpoint is never hit. In Visual Studio, the breakpoint is hollow, indicating it WILL NOT be hit. What else can I try?