User uncaught exceptions
I mean exactly the breakpoint in vscode "User Uncaught Exceptions"
This type of breakpoints means, the exception is raised, break user code execution order and finally caught by library code.
It is quite useful when user debug something with a webserver(Django, streamlit, jupyter, etc.) or unit test framework.
Users want to handle it directly, not view the log, diagnose the stacktrace, go to some line and manually add several breakpoints and rerun the code/test case.
I found an exist topic discuss about this: https://intellij-support.jetbrains.com/hc/en-us/community/posts/206601165-How-to-enable-stopping-on-unhandled-exceptions-
But it is not clearly `user uncaught` and may confuse developers. Now I claim what we need is exactly what vscode already have.
请先登录再写评论。
Hello,
It seems like there is similar functionality in PyCharm.
Please open Run | View Breakpoints and find "Python exception breakpoints", turning this option on will allow the debugger to pause execution if the application throws an exception.
Daniil Bogdanov , You do not understand what I'am trying to explain. Just think, pycharm's "Python exception breakpoints" is actually vscode's "Uncaught exception", not "User uncaught exceptions".
please try to debug this code in both pycharm and vscode:
`python -m streamlit run test.py`
test.py
```
a = [1,2,3]
a
a[4]
```
Please create a feature request on YouTrack on this matter so we can understand the functionality and implement it: https://youtrack.jetbrains.com/issues/PY