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

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
    20,643 Super User 2025 Season 2 on at
  • Suggested answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    14,284 Super User 2025 Season 2 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,639 Super User 2025 Season 2 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
    20,643 Super User 2025 Season 2 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

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,066

#2
YUN ZHU Profile Picture

YUN ZHU 658 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 595

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans