Skip to content

Make it possible to start the devtools after startup #25119

Open

Description

@paulrouget
No description provided.

Activity

  1. highfive commented on Dec 5, 2019

    @highfive
  2. jdm commented on Dec 5, 2019

    @jdm
    Member

    This has interesting implications, because every script thread has a direct channel to the devtools server, and is responsible for sending notifications about new globals. One possibility is that we could have the channels always exist and slowly fill up over time with nothing reading them; this would allow us to start the devtools server later and read the backlog of messages to end up in a reasonable state.

    The other option would be to have script threads store an optional channel, and when it's time to start a server then the constellation distributes a channel to all script threads, who then send notifications about the globals that currently exist. We might need to add some kind of buffering somewhere for console.log output/JS exceptions/etc. that could be sent when connecting to a global, as well, so that developers are able to see output that occurred before the devtools server started?

  3. jdm commented on Dec 5, 2019

    @jdm
    Member

    We might be able to make it easier by having the script thread always talk to the constellation instead of directly to the devtools, which can then make decisions about buffering or discarding in a single central location.

  4. added
    A-constellation
    on Dec 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-constellationA-devtools

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions