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

Unable to debug in visual studio code

(3) ShareShare
ReportReport
Posted on by 50
I am unable to debug al project in visual studio code. All symbols have been loaded and my launch.json is configured properly. About a couple of months ago I could debug my project, but now it doesn't work all of a sudden. Here is my launch.json:
{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "RMSandbox",
            "type": "al",
            "request": "launch",
            "startupObjectId": 50410,
            "breakOnError": true,
            "breakOnRecordWrite": false,
            "launchBrowser": true,
            "enableSqlInformationDebugger": true,
            "enableLongRunningSqlStatements": true,
            "longRunningSqlStatementsThreshold": 500,
            "environmentType": "Sandbox",
            "environmentName": "RMSandbox2", //"RMSandbox",
            "tenant": "22af7074-bc85-420c-81cb-5b9de3ee5329",                        
            "numberOfSqlStatements": 10,
            "schemaUpdateMode": "ForceSync"
        },
        {
            "type": "al",
            "request": "launch",
            "name": "Publish",
            "startupObjectId": 143,
            "startupObjectType": "Page",
            "breakOnError": true,
            "launchBrowser": true,
            "enableLongRunningSqlStatements": true,
            "enableSqlInformationDebugger": true,
            "environmentType": "Sandbox",
            "environmentName": "RMSandbox2"
        }
    ]
}
I have the same question (0)
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    22,625 Super User 2026 Season 1 on at
  • Suggested answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    14,306 Super User 2026 Season 1 on at
    Are you debugging in sandbox?
     
    Also make sure that the app allowDebugging resource policy is set to true
     
    "resourceExposurePolicy": {
        "allowDebugging": true
      },
  • yaza Profile Picture
    50 on at
    The application is able to start when I hit run and debug and It opens a new browser. But when I set a break point, it doesn't hit it. The policy allowdebugging is set to true and I am debugging in sandbox environment.
  • Suggested answer
    Jainam M. Kothari Profile Picture
    16,892 Super User 2026 Season 1 on at
  • Suggested answer
    KP - Solution Architect Technical Profile Picture
    658 on at
    Hi @yaza 
     
    Please check the tenant information is correct or not.
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    22,625 Super User 2026 Season 1 on at
    Or you can create new extension and then try to set debugger

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 April 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,454 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,806 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,538

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans