Skip to content

Debugger unexpectedly pauses on exception that will be caught #17838

@DanTup

Description

@DanTup

For some reason I can only repro this from Dart Code, not from the command line/Observatory... However I don't believe there's anything obviously wrong in VS Code.

I'm running a small sample app on flutter-tester and it breaks at startup on this:

screen shot 2018-05-23 at 2 25 30 pm

However if I go up the stack to OptionalMethodChannel.invokeMethod there is a catch statement that would catch this exception:

screen shot 2018-05-23 at 2 29 05 pm

I've confirmed that exception pause mode is Unhandled:

[14:31:12]: ==> {"id":"5","method":"setExceptionPauseMode","params":{"isolateId":"isolates/1027928886","mode":"Unhandled"}}

Here are full logs from Flutter Run + Observatory:

Metadata

Metadata

Assignees

Labels

a: debuggingDebugging, breakpoints, expression evaluation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions