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

Announcements

No record found.

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,128 Super User 2026 Season 1 on at
  • Suggested answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    14,302 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
    15,732 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,128 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,926 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,158 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 533 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans