Skip to content

Debugging Web Apps: Stacktrace/Mapping seems broken #1525

Closed
@nilsdoehring

Description

@nilsdoehring

When debugging a web app that is producing cast errors at runtime, a user would expect that:

  • Debugger gets triggered, displaying the error message and Dart stack/code
  • Console prints meaningful info, or at least the same contents as Chrome dev tools console

What happens instead?

  • Debugger doesn't get triggered
  • Console prints only a subset of Chrome dev tools console (Screenshot 1)
  • User has to look at Chrome's console output and make best guesses where the error lies in Dart code (Screenshot 2)

What steps will reproduce the problem?

  1. Checkout this branch (it is missing a typecast when parsing json)
  2. Activate Dart, pub get
  3. Debug example/swords_man/index.html

Screenshot 1
image

Screenshot 2 (Chrome console)
image

IDEA EAP 2018.2
Dart SDK 2.0.0-dev.60.0
build_runner: ^0.8.9
build_test: ^0.10.2
build_web_compilers: ^0.4.0+3
OSX, Chrome

Also reported in Jetbrains YouTrack as WEB-33172

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions