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 Business Central On-Prem to a different instance from VS Code

(0) ShareShare
ReportReport
Posted on by 3,967

Hi All,

I have created a Server and WebServer Instance in BC16.
I'm able to connect VS Code to the respective instance, download symbols, and publish extensions.
But when I try to debug the same extension, the debugging starts to a different instance.
I need to know if there is a setting in VS Code to choose which WebserverInstance to debug.

Here is launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Dev",
"request": "launch",
"type": "al",
"environmentType": "OnPrem",
"server": "http://localhost",
"serverInstance": "Dev",
"authentication": "UserPassword",
"startupObjectId": 22,
"startupObjectType": "Page",
"breakOnError": true,
"launchBrowser": true,
"enableLongRunningSqlStatements": true,
"schemaUpdateMode": "ForceSync",
"port": 5049
}
]
}

Debugging URL with debugging context

localhost:8080/.../SignIn


Please note that I have cleared the Credential Cache, Reinstalled AL Extension, and even created a new project and downloaded the symbols.

I have the same question (0)
  • Suggested answer
    Marco Mels Profile Picture
    on at

    Hello,

    Did you fill in PublicWebBaseUrl in customsettings.config file?

    Thanks.

  • Suggested answer
    Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at

    Specify the web client base URL and then set the Server on launch.json to that value. Make sure to restart the services and vs code.

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 3,151

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,443 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,092 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans