Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugger does not stop on uncaught exceptions #16244

Open
1 of 2 tasks
e-vissch opened this issue Nov 22, 2024 · 0 comments
Open
1 of 2 tasks

Debugger does not stop on uncaught exceptions #16244

e-vissch opened this issue Nov 22, 2024 · 0 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@e-vissch
Copy link

Applies To

  • Notebooks (.ipynb files)
  • Interactive Window and/or Cell Scripts (.py files with #%% markers)

What happened?

Same as #5157 which has been closed.

Debugger does start up, it just doesn't stop at the uncaught exception, and simply exits.
The normal python debugger does stop at uncaught exceptions.

Also tried pre-release version + diff python versions.

Image

VS Code Version

1.95.3

Jupyter Extension Version

v2024.10.0

Jupyter logs

14:22:23.298 [info] Starting debugging with mode 1
14:22:24.288 [warn] Cell completed with errors iu [Error]: unsupported operand type(s) for +: 'int' and 'str'
    at n.execute (/Users/~/.vscode/extensions/ms-toolsai.jupyter-2024.10.0-darwin-arm64/dist/extension.node.js:297:4958) {
  ename: 'TypeError',
  evalue: "unsupported operand type(s) for +: 'int' and 'str'",
  traceback: [
    '\x1B[0;31m---------------------------------------------------------------------------\x1B[0m',
    '\x1B[0;31mTypeError\x1B[0m                                 Traceback (most recent call last)',
    'Cell \x1B[0;32mIn[1], line 5\x1B[0m\n' +
      '\x1B[1;32m      1\x1B[0m a \x1B[38;5;241m=\x1B[39m \x1B[38;5;241m3\x1B[39m\n' +
      "\x1B[1;32m      3\x1B[0m b \x1B[38;5;241m=\x1B[39m \x1B[38;5;124m'\x1B[39m\x1B[38;5;124m3\x1B[39m\x1B[38;5;124m'\x1B[39m\n" +
      '\x1B[0;32m----> 5\x1B[0m c \x1B[38;5;241m=\x1B[39m \x1B[43ma\x1B[49m\x1B[43m \x1B[49m\x1B[38;5;241;43m+\x1B[39;49m\x1B[43m \x1B[49m\x1B[43mb\x1B[49m\n' +
      '\x1B[1;32m      7\x1B[0m \x1B[38;5;28mprint\x1B[39m(c)\n',
    "\x1B[0;31mTypeError\x1B[0m: unsupported operand type(s) for +: 'int' and 'str'"
  ]
}
14:22:24.309 [info] Ending debug session 71336bec-e305-43b5-aec8-0a98faca6bd0

Coding Language and Runtime Version

Python 3.9

Language Extension Version (if applicable)

No response

Anaconda Version (if applicable)

No response

Running Jupyter locally or remotely?

Local

@e-vissch e-vissch added the bug Issue identified by VS Code Team member as probable bug label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

2 participants