PyCharm debugger not reporting syntax errors
The PyCharm debugger won't report syntax errors. If I run the code using the Python interpreter (or in the IDE, using Run instead of Debug), the syntax error is reported. But choosing Debug, the syntax error is ignored and the program won't stop.
Code to reproduce the bug (missing colon after if True):
if __name__ == '__main__':
if True
print('syntax error, fool')
Expected behavior: syntax error reported
Actual behavior: infinite loop
Configuration: PyCharm 2019.2 (snap), Ubuntu 18.04.2 LTS, Python 3.6.8 from official Ubuntu repos, default settings in PyCharm for everything except for keymaps etc. (things that should never affect how the debugger works)
Please sign in to leave a comment.
Hi, this is a known issue: https://youtrack.jetbrains.com/issue/PY-37120
Please vote, follow, and feel free to leave comments.