Skip to content

Debug ID: Considering splitting the proposal #185

@szuend

Description

@szuend

The Debug ID proposal consists of 3 additions:

  1. The "debugId" field in the source map JSON
  2. The "debugId" magic comment in bundles
  3. A runtime API to get the Debug ID of the currently running script as well as the debug id of each stack frame in a stack trace.

It might be worth it to consider landing 1) and 2) independent of 3).

Why?

In Chrome DevTools we recently landed an extension API that allows extensions to attach source mapping URLs to Resources. Or provide full source maps in the form of data URLs.

With 1) and 2) in-place, DevTools could add the "debugID" as reported by the engine on the "Resource" object and extensions could use that to then resolve/load the correct source map. The current proposal already goes in a similar direction in the section "Symbol Server Support".

My question from the DevTools sides are:

  1. Does this solve an actual user problem?
  2. Do we have implementors of symbol/artifact servers that would want this?

cc: @lforst @robpaveza

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