Skip to content

"assert False" hangs with "Breakpoints" on for "All Exceptions" #1194

Closed

Description

"assert False" hangs with "Breakpoints" on for "All Exceptions" - see snapshot:

image

Environment data

  • VS Code version: 1.21.1
  • Extension version (available under the Extensions sidebar): Python, macros
  • OS and version: Microsoft Windows [Version 10.0.16299.309]
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.6.4
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): None that I know of, but I am new to Python. Help me find out :)
  • Relevant/affected Python packages and their versions: none, I think

Actual behavior

Debugging never finishes

Expected behavior

Traceback (most recent call last):
  File "c:\Temp\AssertFalse.py", line 1, in <module>
    assert(False)
AssertionError

Steps to reproduce:

  1. Activate "Breakpoints: All Exceptions"
  2. Debug Code including assert (False)

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

(nothing)

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)

(nothing)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

area-debuggingbugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions