You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
Linter 'pylint' is not installed. Please install it or select another linter".
Error: Module 'pylint' not installed.
Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)
~/python/async_exception_debugging$ cd /home/username/python/async_exception_debugging ; env "PYTHONIOENCODING=UTF-8" "PYTHONUNBUFFERED=1" /home/username/python/async_exception_debugging/env/bin/python /home/username/.vscode/extensions/ms-python.python-2018.3.1/pythonFiles/PythonTools/visualstudio_py_launcher.py /home/username/python/async_exception_debugging 40845 34806ad9-833a-4524-8cd6-18ca4aa74f14 RedirectOutput,RedirectOutput /home/username/python/async_exception_debugging/app.py
Hello world.
Traceback (most recent call last):
File "/home/username/python/async_exception_debugging/app.py", line 16, in <module>
loop.run_until_complete(main())
File "/usr/lib/python3.6/asyncio/base_events.py", line 467, in run_until_complete
return future.result()
File "/home/username/python/async_exception_debugging/app.py", line 10, in main
error()
File "/home/username/python/async_exception_debugging/app.py", line 4, in error
raise Exception('Something bad happened')
Exception: Something bad happened
The text was updated successfully, but these errors were encountered:
Environment data
Actual behavior
When debugging async/await code, if an exception is thrown, the debugger halts at the loop entry point instead of where the exception happened.
Expected behavior
The debugger should stop where the exception happens.
Steps to reproduce:
Run this code in the debugger:
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
)The text was updated successfully, but these errors were encountered: