0

I took a python class a few months ago, but now I'd like to use VSCode for JavaScript. I know JS and JS debugging is already in VSCode, but when I run a simple file with just var x = 9; for example, the debugger only looks for Python and says it's invalid syntax. Before it shows results, the terminal always prints:

env PYTHONIOENCODING=UTF-8 PYTHONUNBUFFERED=1 /anaconda3/bin/python

I checked the launch.json file, and it only has Python debugs in the file. How do I change the debugger back to the default settings and disable the Python? Or how do I delete VSCode and revert back to default settings? I tried it once and it went back to the way it was.

For context: Mac OS 10.14.4. I have Microsoft's Python extension on.

  • Do you have NodeJS or Chrome installed to be able to run the Javascript code somehow? – Daniel B May 16 at 11:32
  • I don't think so. I read VSCode already had node.js/javascript so I assumed it automatically switched over. I just tried to use a debugger with just node.js on "launch" and it says, "Debugger listening on [some strong of numbers and letters] Debugger attached. Waiting for the debugger to disconnect." – user1036874 May 16 at 12:26
  • But if you have any ideas of what I should download please let me know! – user1036874 May 16 at 12:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.