Skip to content

DevTools failed to load SourceMap: Could not load content for http://127.0.0.1:8080/packages/build_web_compilers/src/dev_compiler_stack_trace/stack_trace_mapper.dart.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE #1500

@liudonghua123

Description

@liudonghua123

Thank you for taking the time to file an issue!

This tracker is for issues related to:

  • Dart core libraries ("dart:async", "dart:io", etc.)
  • Dart VM
  • dart2js
  • dev_compiler

I followed the instructions on https://dart.dev/tutorials/web/get-started, https://dart.dev/web/debugging. And when I opened the configured chrome devtools, refresh the page. Then the console log the following warnings.

DevTools failed to load SourceMap: Could not load content for http://127.0.0.1:8080/packages/build_web_compilers/src/dev_compiler_stack_trace/stack_trace_mapper.dart.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for http://127.0.0.1:8080/packages/build_web_compilers/src/dev_compiler/dart_sdk.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

I can set breakpoint in dart code in source panel. The debugger stopped at the breakpoint, However the types of variable can't shown.

微信图片_20200425124756

This is the console of webdev serve.

D:\code\dart\quickstart-web>webdev serve
[INFO] Reading cached asset graph completed, took 162ms
[INFO] Checking for updates since last build completed, took 580ms
[INFO] Serving `web` on http://127.0.0.1:8080
[INFO] Running build completed, took 205ms
[INFO] Caching finalized dependency graph completed, took 118ms
[INFO] Succeeded after 328ms with 0 outputs (0 actions)
[INFO] -------------------------------------------------------------------------------------

This is the chrome devtools setttings.

微信图片_20200425124951

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions