Support for customizing exception breakpoints in debugger
See original GitHub issueToday the debugger supports breaking into specific exceptions by listing the exceptions in the launch.json
file.
Now that PTVSD supports the protocol, Its a good time to visit how these custom exception breakpoints can be passed into PTVSD, here’s are the two solutions:
Option 1: Note: We’d need to add lot more exceptions into the list,
Option 2: Go with the launch.json
approach (configure exceptions in the launch.json as done today - no GUI).
here’s option 1:
Issue Analytics
- State:
- Created 6 years ago
- Reactions:39
- Comments:25 (4 by maintainers)
Top Results From Across the Web
Manage exceptions with the debugger in Visual Studio
Learn how to specify which exceptions the debugger breaks on, at which point you want the debugger to break, and how breaks are...
Read more >Breakpoints | IntelliJ IDEA Documentation - JetBrains
Breakpoints are special markers that suspend program execution at a specific point. This lets you examine the program state and behavior.
Read more >IntelliJ IDEA: How can I create an exception breakpoint that ...
Open the breakpoints window from the debug view. · Uncheck "Any Exception" so we will not be stopping at any exception using the...
Read more >Setting breakpoints to pause your running app
Drag a breakpoint up or down to move it to another location; drag it away from the gutter to remove it. Click the...
Read more >Debugging in Visual Studio Code
An inline breakpoint can be set using Shift+F9 or through the context menu during a debug session. Inline breakpoints are shown inline in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The most useful thing is to be able to “turn off break on exception” on a specific exception that is happening too often, like “GeneratorExit” exceptions that happen in swig wrappers. So I don’t really care about the full list of all possible exceptions, rather the inverse, which is the much smaller list of exceptions that I don’t care about.
This is critical feature ask for Python given that language requires exceptions for various core features, unfortunately. Unless there is an ability to disable break on
StopIteration
andGeneratorExit
, integrated debugging becomes useless on more difficult bugs. Hope this gets in soon!