title: Debugging python with VSCode leads to incompatible architecture error
body: <p>I have setup VSCode on an M1 ARM apple laptop. Using the terminal I can launch my python project just fine, however when I try to debug via VSCode I end up with:</p>
  <p>incompatible architecture (have 'x86_64', need 'arm64e')</p>
  <p>It appears to activate the same virtualenv in the terminal and inside VSCode.</p>
  <p>In the error output I noticed: &quot;File &quot;/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/importlib/<strong>init</strong>.py&quot;, line 127, in import_module&quot;</p>
  <p><a href="https://i.stack.imgur.com/ac4XI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ac4XI.png" alt="enter image description here" /></a></p>
  <p>Is it maybe using the wrong python, ie. not the virtualenv python? Is there anyway I can tell VSCode which python to use?</p>
  <p>If I run &quot;where python&quot; I get &quot;/usr/bin/python&quot; and if I run &quot;where python3&quot; I get:
  /usr/local/bin/python3
  /usr/bin/python3</p>