Anthony
Anthony

Reputation: 9

Visual Studio Code python debug error PyQt5

Since I've updated VS code it seems to have broken my debugger. For a while I kept getting a Debug adapter process has terminated unexpectedly error. Can't even remember how I got past that.

Now I get this error when trying to debug a python script using pyqt. This all worked a few months ago.

C:\Workspace\pyqt_tutorial>cd c:\Workspace\pyqt_tutorial && cmd /C "set "PYTHONIOENCODING=UTF-8" && set "PYTHONUNBUFFERED=1" && C:\Python34\python.exe C:\Users\Peter\.vscode\extensions\ms-python.python-2018.4.0\pythonFiles\PythonTools\visualstudio_py_launcher.py c:\Workspace\pyqt_tutorial 53792 34806ad9-833a-4524-8cd6-18ca4aa74f14 RedirectOutput,RedirectOutput c:\Workspace\pyqt_tutorial\main.py "

'cmd' is not recognized as an internal or external command, operable program or batch file.

This is the output on the terminal when I click run in the debug menu on vs code.

Also my breakpoints don't work unless I put a delay in the 1st line of each script, debugger takes almost a minute to get to the first line... It was so smooth before. What happened!?

Upvotes: 0

Views: 1286

Answers (1)

Veb
Veb

Reputation: 53

I was facing the same thing which got fixed by adding C:\Windows\System32 in the path variable under environmental variables(same place where we add path for python).

Mark useful if it helps.

Upvotes: 1

Related Questions