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

Announcements

News and Announcements icon
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
    IB-29041624-0 Profile Picture
    1,191 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
    101,995 Super User 2026 Season 1 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,119 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,522 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 1,177 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans