Skip to content

Wasm Language Components for browser DevTools #8

@bmeurer

Description

@bmeurer

On the Chromium DevTools side we've recently started a discussion around a concept we call Language Components, which would allow developers to supply plugins to debug (parts of) their web applications in terms of the source language. You can think of these language components as an extension to source maps. Similar ideas have been proposed for DevTools in the past.

One primary driver here is obviously Wasm, but we also believe that language components will help us close the gap for modern web development in general, since the JavaScript that is shipped to the browser only occasionally matches the code that was written by the developers, and source maps aren't powerful enough to cover all the interesting aspects.

In a way these language components are a more general form of the debugging modules that we had in mind initially, but with some potentially interesting differences. In particular it would be nice (for security, test-ability and extensibility) to have a decouple the language component from the underlying engine and instead provide an (asynchronous) query interface which is used by the browser to perform the necessary operations mapping between target language (JS & Wasm) and source language.

We're still in the very early stages and doing some prototyping to see what's possible and how, but please share any feedback that you have on the idea / design and join the discussion.

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