You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is a common workflow in Java for debugging a unit test that unexpectedly throws an exception (which is later caught):
Set a breakpoint at the top of the broken unit test.
Launch unit tests.
When the breakpoint is hit, instruct the debugger to break on all exceptions.
Continue executing the test.
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.
Here is a common workflow in Java for debugging a unit test that unexpectedly throws an exception (which is later caught):
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.
The text was updated successfully, but these errors were encountered: