Skip to content

[Feature Request] Add options for handling errors encountered during debugging #714

Open
@tzengshinfu

Description

@tzengshinfu

Hello,

While debugging, I encountered an "undefined variable" error.
However, my attention was focused on the editor area, and the spelling error notification happened to be obscured by the line highlight where my cursor was.
As a result, I didn't notice that Pylance had already reported the error.

Would it be possible for the Python debugger to check for Pylance-detected errors before starting a debug session,
and instead jump directly to the PROBLEMS panel instead of launching the debugger?
Just like how VSCode behaves with JavaScript.
Image

Although this may only save a few seconds, it can significantly reduce wasted attention and improve productivity, especially for beginners who go through a lot of trial and error.

Thank you very much for your help!

VSCode version: 1.100.2
Python Debugger version: 2025.9.2025052001
Pylance version: 2025.5.1

Metadata

Metadata

Assignees

Labels

triage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions