title: Setting the Python path in Visual Studio Code for file 'launch.json'
body: <p>I have been using Visual Studio Code for a few years and I find it a really good IDE. I program in Python more than any other language.</p>
  <p>It really bothers me that I did not get around to using the IDE's debugger (even though it's a feature).</p>
  <p>Error when pressing the debug play button:</p>
  <pre><code>Failed to launch the Python Process, please validate the path 'export PATH=$PATH:/Library/Frameworks/Python.framework/Versions/2.7/bin/python'
  </code></pre>
  <p><a href="https://i.stack.imgur.com/8RAMn.png" rel="noreferrer"><img src="https://i.stack.imgur.com/8RAMn.png" alt="Enter image description here" /></a></p>
  <p>Checking my PYTHONPATH:</p>
  <p><a href="https://i.stack.imgur.com/peWtt.png" rel="noreferrer"><img src="https://i.stack.imgur.com/peWtt.png" alt="Enter image description here" /></a></p>
  <p>My <em>launch.json</em> file:</p>
  <pre><code>&quot;configurations&quot;: [
      {
          &quot;name&quot;: &quot;Python&quot;,
          &quot;type&quot;: &quot;python&quot;,
          &quot;request&quot;: &quot;launch&quot;,
          &quot;stopOnEntry&quot;: true,
          &quot;pythonPath&quot;: &quot;${config:python.pythonPath}&quot;,
          &quot;program&quot;: &quot;${file}&quot;,
          &quot;cwd&quot;: &quot;/workspace/h5-automation/&quot;,
          &quot;env&quot;: {},
          &quot;envFile&quot;: &quot;${workspaceRoot}/.env&quot;,
          &quot;debugOptions&quot;: [
              &quot;WaitOnAbnormalExit&quot;,
              &quot;WaitOnNormalExit&quot;,
              &quot;RedirectOutput&quot;
          ]
      }
  </code></pre>
  <p>Any ideas / suggestions?</p>