Skip to main content

Notifications

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

(4) 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"
        }
    ]
}
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    16,372 Super User 2025 Season 1 on at
    Unable to debug in visual studio code
    Or you can create new extension and then try to set debugger
  • Suggested answer
    KP - Solution Architect Technical Profile Picture
    479 on at
    Unable to debug in visual studio code
    Hi @yaza 
     
    Please check the tenant information is correct or not.
  • Suggested answer
    Jainam M. Kothari Profile Picture
    7,938 on at
  • yaza Profile Picture
    50 on at
    Unable to debug in visual studio code
    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
    Teddy Herryanto (That NAV Guy) Profile Picture
    13,643 Moderator on at
    Unable to debug in visual studio code
    Are you debugging in sandbox?
     
    Also make sure that the app allowDebugging resource policy is set to true
     
    "resourceExposurePolicy": {
        "allowDebugging": true
      },
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    16,372 Super User 2025 Season 1 on at

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 1,014

#2
YUN ZHU Profile Picture

YUN ZHU 950 Super User 2025 Season 1

#3
Mansi Soni Profile Picture

Mansi Soni 624

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans