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

"Break on exceptions" preference doesn't take effect until next launch #19141

Closed
stereotype441 opened this issue Jun 2, 2014 · 7 comments
Closed
Assignees
Milestone

Comments

@stereotype441
Copy link
Member

Here is a common workflow in Java for debugging a unit test that unexpectedly throws an exception (which is later caught):

  1. Set a breakpoint at the top of the broken unit test.
  2. Launch unit tests.
  3. When the breakpoint is hit, instruct the debugger to break on all exceptions.
  4. Continue executing the test.
  5. The debugger stops at the point where the undesired exception is thrown.

This workflow doesn't work in the Dart editor, because the user preference for "break on exceptions" only takes effect when the program is launched. This means that the user can't wait until step 3 to instruct the debugger to break on all exceptions--they have to do this before launching the unit tests. As a result, there is no way to avoid wading through all of the exceptions thrown during execution of non-broken unit tests. In a project with hundreds or thousands of unit tests this is impractical.

See also issue #13414.

@clayberg
Copy link

clayberg commented Jun 3, 2014

Set owner to @devoncarew.
Added this to the Later milestone.
Removed Priority-Unassigned label.
Added Priority-Medium label.

@kasperl
Copy link

kasperl commented Jul 10, 2014

Removed this from the Later milestone.
Added Oldschool-Milestone-Later label.

@kasperl
Copy link

kasperl commented Aug 4, 2014

Removed Oldschool-Milestone-Later label.

@clayberg
Copy link

cc @scheglov.

@scheglov
Copy link
Contributor

https://codereview.chromium.org/607893008


cc @devoncarew.
Set owner to @scheglov.
Added Started label.

@scheglov
Copy link
Contributor

@clayberg
Copy link

Added this to the 1.7 milestone.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants