Python Debugging Debug Python Apps import ptvsd ptvsd.enable_attach(redirect_output=True) print("Now ready for the IDE to connect to the debugger") ptvsd.wait_for_attach()