Skip to content

Debugger doesn't break on any code when debug-my-code and exception stack contains no user code #2699

@DanTup

Description

@DanTup

For example, in a clean app add:

@override
void initState() async {
  super.initState();

  try {
    final response = await Dio().get("http://notavalidhostname");
    print(response);
  } catch (e) {
    print(e);
  }
}

When you run it, you pause on an exception without focusing any code:

Screenshot 2020-08-04 at 12 00 03

Metadata

Metadata

Assignees

No one assigned

    Labels

    in debuggingRelates to the debug adapter or process of running debug sessionsis bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions