I've followed the process in this article https://code.visualstudio.com/docs/azure/remote-debugging
While a debug session seems to have started, I cannot set or use any breakpoints.
Node.js in an App Service
I can stream logs. I tried to set a breakpoint on the files that show up in the Azure Explorer as well as the files that I work on. I keep getting an Unbound breakpoint
Created Node JS App and deployed to Azure Linux App Service
.
Enable Remote Debugging
. Unbound breakpoint
message. Azure Portal
=> App Service
=> Configuration
=>check Remote debugging
Under Debugging section. .NET
and tried to Enable Remote debugging
from VSCode
.Got the below error. It clearly says that Remote Debugging
option is available for NodeJS Azure Linux App
.
Again, updated the Runtime stack back to NODE
.
Thanks @Kenneth for the configuration steps.
Tried to change few configurations as mentioned in the Document.
In VSCode
=> File
=> Preferences
=> Settings
=>In search box search with appservice
keyword.
We will get an option to edit settings.json
file.
settings.json
, add the below line of code"appService.enableRemoteDebugging":true
Package.json
change the scripts
setting as below."scripts": {
"start": "node ./bin/www",
"start\\_azure\\_debug": "node --inspect=0.0.0.0:$APPSVC\\_TUNNEL\\_PORT index.js"
},
Azure Portal
=> Your Azure App Service
=> Configuration
=> General settings
, add the npm run start_azure_debug
as startup command. VSCode
. There might be some issue with Remote Debugging
, MS Support
request may be required.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.