Skip to content

Stack traces are obfuscated #8627

Open
Open
@DanTup

Description

@DanTup

In Dart-Code/Dart-Code#5367 (comment) I noted the stack traces for some errors were not very useful because of minification/wasm. After discussing with @kenzieschmoll we believed this might be VS Code-specific so to try and compare I checked what I'm getting outside of DevTools.

I can't repro the same issue, however I can force the kind of error noted at Dart-Code/Dart-Code#5158 (comment) by just running:

dt serve --dtd-uri ws://localhost:1234/invalid

When using WASM, this is what I see:

image

It's not clear to me if this is expected or not. There are some .dart files and line numbers in the call stack, but there are also some main.dart.wasm with hex offsets and all of the function names are obfuscated.

If I do the same without WASM, the function names are all still obfuscated although the top of the stack has some extra filenames that weren't in the wasm version (for example logger_helpers.dart:34).

image

I'm not certain that this is wrong, but the screenshots from @elliette at Dart-Code/Dart-Code#5158 (comment) seem like they have much better information than here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1high priority issues at the top of the work list, actively being worked on.dart2wasmproduct-qualityIssues related to product quality.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions