Skip to content

EH debugging: use massaged launch for attach #31659

Closed

Description

As Andre pointed out:

Isidor Nikolic (@isidorn) in EH debugging, the launchRequest starts the extension host (via VS Code) but the DA does not connect (aka "attach") to it (in normal "node" debugging the DA connects to the launched debuggee automatically).

Instead VS Code knows when the EH is ready and then broadcasts an event that you will pick up and issue the missing "attach" request for it. This is basically the same sequence as the "reload EH window" sequence.

For the "attach" request that you issue in response to the broadcast, you use the initial "launch" configuration and just change the "request" attribute from "launch" to "attach".
Since the initial "launch" config uses the type "extensionHost", the "attach" uses that too.

The fix is to remember the massaged launch config (that got the type "extensionHost2"), and create the "attach" config based on this.

Activity

  1. added
    debug
    on Jul 28, 2017
  2. isidorn commented on Aug 3, 2017

    @isidorn
    Author

    Code pointer

    Andre Weinand (@weinand) the issue here is that the terminate event sometimes comes before the attach. So in order to get the massaged config I would have to remember all the configs for all the sessions that ever existed. Which I can do, but maybe a nicer alternative would be for me to ask the extension to massage the config again. Thoughts?

    fyi roblourens

  3. added
    under-discussion
    on Aug 3, 2017
  4. weinand commented on Sep 5, 2017

    @weinand
    Contributor

    Most likely this is not an issue anymore since we no longer rewrite the type for EH debugging from extensionHost to extensionHost2

  5. isidorn commented on Sep 8, 2017

    @isidorn
    Author

    This is actually fixed via 9eec2b4
    Now we are remembering the configs of all processes, including if they get massaged

  6. added
    bug
    and removed
    under-discussion
    on Sep 8, 2017
  7. added
    verified
    on Sep 27, 2017
  8. locked and limited conversation to collaborators on Nov 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugdebugverified

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions