Skip to content Skip to sidebar Skip to footer

How To Setup Vscode Python Debugger For An App Engine App?

After following the steps in the official wiki I keep getting the following error when launching with breakpoints or setting breakpoints: /ptvsd/wrapper.py', line 423, in pyde

Solution 1:

My solution was to use PyCharm community edition's debugger, its similar perhaps more capable IDE and debugger for Python specific debugging.

Solution 2:

I have tried to find a reliable way to get rid of this error but it's proving quite difficult. Here are some advices though:

  • Use the --threadsafe_override=default:false flag when running the app engine dev server as explained here.

  • The app engine dev server must be launched from vscode(for example via a task) instead of a separate terminal window.

  • If you still get the error, stop the debugger, kill the task and restart everything.

(After that the debugger correctly hits the breakpoints, but curiously the callstack is set to the main thread instead of the thread containing the breakpoint, you need to manually click on the correct thread in the callstack window.)

Post a Comment for "How To Setup Vscode Python Debugger For An App Engine App?"