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

(0) ShareShare
ReportReport
Posted on by 4,009

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
    Microsoft Employee on at

    Hello,

    Did you fill in PublicWebBaseUrl in customsettings.config file?

    Thanks.

  • Suggested answer
    Suresh Kulla Profile Picture
    50,269 Super User 2026 Season 1 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

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

#2
YUN ZHU Profile Picture

YUN ZHU 1,047 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 959 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans