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
Please note that I have cleared the Credential Cache, Reinstalled AL Extension, and even created a new project and downloaded the symbols.
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.
Hello,
Did you fill in PublicWebBaseUrl in customsettings.config file?
Thanks.
Sohail Ahmed
1,169
YUN ZHU
1,004
Super User 2025 Season 1
Mansi Soni
830