title: Fixing deprecation [DEP0062] for Node.js in Visual Studio 2015 with launch.json
body: <p>I'm trying to create a basic 'Hello World' web server with Node.js v8.9.1 using Visual Studio 2015 and I'm getting stopped by this warning:</p>
  
  <pre><code>(node:16764) [DEP0062] DeprecationWarning: `node --debug` and `node --debug-brk` are invalid. Please use `node --inspect` or `node --inspect-brk` instead.
  </code></pre>
  
  <p>The meaning of this warning is <a href="https://nodejs.org/api/deprecations.html#deprecations_dep0062_node_debug" rel="noreferrer">simple</a>: the old <code>node --debug</code> needs to be replaced with the new <code>node --inspect</code>. <em>How</em> to make that change is where I am getting stuck. <code>node --debug</code> is getting used automatically and is not in any file that I can see, and the way to replace or overwrite that automatic value is not clear.</p>
  
  <p><a href="https://github.com/Microsoft/vscode/issues/32529" rel="noreferrer">This thread</a> tells me that I need to alter my <code>launch.json</code> file to overwrite the protocol for <code>node --debug</code>, which sounds plausible, but <code>launch.json</code> is not a file that I can see. I found the <a href="https://code.visualstudio.com/docs/editor/debugging#_launch-configurations" rel="noreferrer">documentation</a> to altering my launch configurations, but those instructions do not line up with what I'm seeing... I do not see the "Configuration gear icon on the Debug view top bar" like it says I should, and I'm not sure if it matters what folder I set up the launch configuration file in.</p>
  
  <p>At the very bottom of that <a href="https://code.visualstudio.com/docs/editor/debugging#_common-questions" rel="noreferrer">documentation</a> is an FAQ with that problem, confirming that I need to set up <code>launch.json</code> and not saying <em>how</em> to set up the file, although I have a gist of <a href="https://github.com/Microsoft/vscode-node-debug2/blob/master/testapp/.vscode/launch.json" rel="noreferrer">what it should like</a>.</p>
  
  <p>Assuming that <code>launch.json</code> is the solution to my depreciation error, how should I set up that file in Visual Studio 2015?</p>
  
  <p>EDIT: For reference I'm adding a screenshot. Also, I was following <a href="https://channel9.msdn.com/Events/Visual-Studio/Visual-Studio-2015-Final-Release-Event/Nodejs-Tools-for-Visual-Studio" rel="noreferrer">this</a> guide and hit this snag about 3 minutes in.</p>
  
  <p><a href="https://i.stack.imgur.com/gNWyB.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/gNWyB.jpg" alt="looking for launch.json"></a></p>
  
  <p>UPDATE: I found <code>node.exe --debug</code> in the file <code>Web.Debug.config</code> and changed it to <code>node.exe --inspect</code>, but the same error still occurs.</p>