question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for customizing exception breakpoints in debugger

See original GitHub issue

Today 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: screen shot 2018-02-21 at 1 45 37 pm

@MikhailArkhipov @brettcannon @qubitron cc

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:39
  • Comments:25 (4 by maintainers)

github_iconTop GitHub Comments

19reactions
lovettchriscommented, May 28, 2019

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.

16reactions
syteluscommented, Dec 11, 2019

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 and GeneratorExit, integrated debugging becomes useless on more difficult bugs. Hope this gets in soon!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found