Fail to debug a SQL procedure in Visual Studio 2022

Maciel, Juliano Ribeiro de Souza 5 Reputation points
2023-03-02T20:05:44.3566667+00:00

I try to debug a procedure in my VS2022, but, it's not works when I set to debug mode.

falha-debug-sql-vs-2022

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,690 questions
{count} votes

5 answers

Sort by: Most helpful
  1. Olaf Haunhorst 10 Reputation points
    2023-05-30T15:47:24.42+00:00

    Hi,

    it seems that this is an issue in non-english versions of VS 2022. The workaround for the german version was to install the english language package and use it:

    https://developercommunity.visualstudio.com/t/SQL-debugger-cant-step-into-VS2022-17/10243578

    I don't have any clue why Microsoft does not fix this.

    2 people found this answer helpful.

  2. Seeya Xi-MSFT 16,436 Reputation points
    2023-03-03T08:47:13.08+00:00

    Hi @Maciel, Juliano Ribeiro de Souza,

    Could you click the play button after a sentence?

    User's image

    Also, I recommend you to read this document:

    https://learn.microsoft.com/en-us/visualstudio/debugger/error-unable-to-access-the-sql-server-debugging-interface?view=vs-2022

    Best regards,

    Seeya


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".


  3. Maciel, Juliano Ribeiro de Souza 5 Reputation points
    2023-03-03T11:28:59.21+00:00

    Try to execute in debug mode.

    falha-debug-sql-vs-2022-parte-2

    0 comments No comments

  4. Seeya Xi-MSFT 16,436 Reputation points
    2023-03-06T06:06:57.1533333+00:00

    Hi @Maciel, Juliano Ribeiro de Souza,

    Have you tried rebuilding your project or restarting Visual Studio? I had the same problem before, and it was finally solved by restarting Visual Studio.

    By the way, you need to make sure that your SSDT is installed and Enabled.

    User's image

    Best regards,

    Seeya


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it.

    0 comments No comments

  5. Giorgio Repetti - Espritec Srl 0 Reputation points
    2023-05-27T10:28:23.0233333+00:00

    I have the same problem, The step into doesn't work, Simply the execution go to the end of procedure.

    0 comments No comments