-
Notifications
You must be signed in to change notification settings - Fork 37.2k
Description
Hi team, I was reading through the closed issues on this deprecated warning but I still can't seem to get the message removed and am a little confused with exactly how it was resolved. I've followed (I think) the instructions for using the setting "protocol": "inspector" but I still it being launched with the deprecated parameter and see the message even though I have this setting.
By using "protocol": "inspector" is that supposed to issue the correct node debug command? In one of the discussions detailing this issue (here #32529), it was mentioned by @weinand that there is no way to remove this message because both debug parameters are submitted. But surely this protocol setting could be smart and only submit the parameters required for more modern versions of node? Also setting this parameter to auto fails and node will not start.
If you look at the command being issued it shows that node --inspect --debug-brk are the two parameters being passed. Node is asking for --inspect-brk. Maybe one other option would be to add a launch parameter to provide your own debug parameters should you desire.
Maybe I am doing something wrong, or maybe I am just late to the party and missed the solution, but I am still puzzled and have expired all of my searches on trying to resolve it. Please point me to the article that shows the solution if so.
I am using node 9.5.0 on WSL with the latest Visual Code production build 1.20.1. I also checked on the insiders build of VC and it's also there.
My launch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "queue",
"protocol": "inspector",
"program": "${workspaceFolder}/queue.js",
"useWSL": true,
"outputCapture": "std",
"sourceMaps": true
},
]
}
Cheers.
