title: Python debugger not working in VSCode under venv
body: <p>I have the following settings.json</p>
  <pre><code>{
      &quot;python.pythonPath&quot;: &quot;C:\\Users\\james\\OneDrive\\Programming Projects\\Python\\webscraper\\Scripts\\python.exe&quot;,
      &quot;python.linting.enabled&quot;: true,
      &quot;python.linting.pylintEnabled&quot;: true,
      &quot;python.linting.pylintPath&quot;: &quot;\\Scripts\\pylint.exe&quot;
  }
  </code></pre>
  <p>and the following entry in launch.json:</p>
  <pre><code>{
      // 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
      &quot;version&quot;: &quot;0.2.0&quot;,
      &quot;configurations&quot;: [
          {
              &quot;name&quot;: &quot;Python: Current File (Integrated Terminal)&quot;,
              &quot;type&quot;: &quot;python&quot;,
              &quot;request&quot;: &quot;launch&quot;,
              &quot;program&quot;: &quot;${file}&quot;,
              &quot;console&quot;: &quot;integratedTerminal&quot;
          }
      ]
  }
  </code></pre>
  <p>When I go to my file I want to debug and pick my <code>Python: Current File (Integrated Terminal)</code> debugger, it greys out my breakpoints and shows this:</p>
  <p><a href="https://i.stack.imgur.com/zrXRe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zrXRe.png" alt="enter image description here" /></a></p>
  <p>If, on the other hand, I set up a new interpreter, for example:</p>
  <pre><code>&quot;C:\\Users\\james\\AppData\\Local\\Programs\\Python\\Python39-32\\python.exe&quot;
  </code></pre>
  <p>It will run the debugger, but at the same time, it does not take my venv into account and so throws errors about missing modules (as it should).</p>
  <p><a href="https://i.stack.imgur.com/lHlBv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lHlBv.png" alt="enter image description here" /></a></p>
  <p>Do you know where I might be going wrong?</p>