title: Unable to debug Azure Functions Core Tools in VSCode
body: <p>I am currently having trouble to debug my Azure Functions Core Tools in VS Code.
  I am using the npm package <code>azure-functions-core-tools@2</code>.
  As i read on many resources <code>func host start</code> / <code>func start</code> should always start the node process in with <code>--inspect=9229</code>. As you can see this is not the case in my setup:</p>
  
  <pre><code>[4/30/19 4:51:25 AM] Starting language worker process:node  "/usr/lib/node_modules/azure-functions-core-tools/bin/workers/node/dist/src/nodejsWorker.js" --host 127.0.0.1 --port 50426 --workerId 3e909143-72a3-4779-99c7-376ab3aba92b --requestId 656a9413-e705-4db8-b09f-da44fb1f991d --grpcMaxMessageLength 134217728
  [4/30/19 4:51:25 AM] node process with Id=92 started
  [4/30/19 4:51:25 AM] Generating 1 job function(s)
  [...]
  [4/30/19 4:51:25 AM] Job host started
  Hosting environment: Production
  </code></pre>
  
  <p>Also all attempts of changing the hosting environment failed. I tried to add <code>FUNCTIONS_CORETOOLS_ENVIRONMENT</code> to my local configuration, resulting in an error:</p>
  
  <pre><code>An item with the same key has already been added. Key: FUNCTIONS_CORETOOLS_ENVIRONMENT
  </code></pre>
  
  <p>I tried to add several environment variables in my launch and task settings, using <code>--debug</code>, changing project settings. Nothing works.</p>
  
  <p>I am currently running this on the Windows Subsystem for Linux (WSL) and except this it works really well.</p>
  
  <p>Anyone has a clue on what i am doing wrong here?</p>