web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Hit breakpoints on SaaS Business Central when calling web services

(2) ShareShare
ReportReport
Posted on by 4
Hi,
 
After many failed attempts I'm looking for help.
I used to debug my apis by setting them into actions then runing debug, but it's seems that it's possible to do it by attach request.
 
I try to call webservices from Business Central with Postman or Insomnia and hit breakpoints set in Visual Studio.
 
My launch.json :
 
 
My webservice (API Page) :
 
 
 
When i run / Attach: Microsoft cloud sandbox /  I get this message :
 
 
Then I call my webservice in Insomnia and get a good response (url call =  OData url generated from web service entry in bc) :
 
 
 
But my breakpoints are never hit.
Does someone know what step i'm missing here?
 
Thanks in advance for your help,
Sincerely yours
 
I have the same question (0)
  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,111 Moderator on at
  • Suggested answer
    ev_enter Profile Picture
    9 on at
    I also struggled with this and found that you need to add the user property in your configuration. This is the user id of the authenticated user making the call.
     
    {
                    "name": "Attach: Microsoft cloud Sandbox",
                    "type": "al",
                    "request": "attach",
                    "environmentType": "Sandbox",
                    "environmentName": "Sandbox",
                    "breakOnError": "All",
                    "breakOnRecordWrite": "None",
                    "enableSqlInformationDebugger": true,
                    "enableLongRunningSqlStatements": true,
                    "longRunningSqlStatementsThreshold": 500,
                    "numberOfSqlStatements": 10,
                    "breakOnNext": "WebServiceClient",
                    "tenant": "c8xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx5",
                    "userId": "2exxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx5"
                },
  • Suggested answer
    YUN ZHU Profile Picture
    95,718 Super User 2025 Season 2 on at
    Hi, hope the following helps.
    Business Central 2023 wave 1 (BC22): Attach AL debugger to active session or next session (Specific user)
     
    Thanks.
    ZHU

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,664

#2
YUN ZHU Profile Picture

YUN ZHU 960 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 773 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans