-
Notifications
You must be signed in to change notification settings - Fork 29.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handing of "[DEP0062] DeprecationWarning: node --inspect --debug-brk
is deprecated. Please use node --inspect-brk
instead"
#44371
Comments
node --inspect --debug-brk
is deprecated. Please use node --inspect-brk
instead"node --inspect --debug-brk
is deprecated. Please use node --inspect-brk
instead"
node --inspect --debug-brk
is deprecated. Please use node --inspect-brk
instead"node --inspect --debug-brk
is deprecated. Please use node --inspect-brk
instead"
node --inspect --debug-brk
is deprecated. Please use node --inspect-brk
instead"node --inspect --debug-brk
is deprecated. Please use node --inspect-brk
instead"
Hi @weinand - I still get the same message using my desktop with visual code. That is running a production build of Windows 10 with the latest creators update. I did tried again, this time on my Surface book (different machine) which has Insiders build version of Windows 10 and Ubuntu 16. I get the same issue. I tried to force run a specific version of node within launch.json (as you can see below), but that still did not eliminate the message. I've also tried upgrading to node 9.6.1 and downgrading to node 7x, but still I see the message. I also tried the Visual Code insiders build, and still I see the message. What's different about your environment? Could it be something related to your .bashrc?
|
@weinand what other info can I get you? |
instead of running "elastc.js" please just run the trivial program version.js: console.log(process.version) What is the output? If you set "useWSL" to false what is the output? |
@weinand here it is with a simple test: If I set useWSL to false, nothing will work. I do not have node installed on Windows and my code is executing from within bash. If you really need to know I will go ahead and install it, but that really is outside the environment we are in. |
So I cannot explain why you are seeing this but it is not really a problem at all. See this comment for why we are doing this:
@roblourens might chime in... |
@weinand It can't be coincidence that it is happening in two different desktop environments. I even stripped my .bashrc back to barebones. The only thing I have in there is my here's what I had in my .bashrc
I also did this test: just running node at the command line and did not see the same message.
Perhaps this may be related to running bash.exe from Windows land and then executing node? |
I try to check the node version to determine whether it's safe to use |
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 thisprotocol
setting could be smart and only submit the parameters required for more modern versions of node? Also setting this parameter toauto
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
Cheers.
The text was updated successfully, but these errors were encountered: