Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/dlv: add --client-addr flag to run dap with a predefined client #2568

Merged
merged 11 commits into from
Oct 13, 2021

Commits on Jul 4, 2021

  1. cmds: add a new dap-reverse command

    This command is a helper command to be used by dlv dap when
    launch request with a console property (integrated, external)
    is received. The dlv dap server then asks the client to run
    this command in the integrated or external terminal using the
    RunInTerminal request and turns itself into a proxy mode that
    forwards messages between the client and the dap-reverse command
    run by the editor.
    
    The dap-reverse command is similar to the dap command, except
    that instead of opening a port and running as a server listening
    on the port, this command dials to the supplied address (the
    rendezvous port setup by the dlv dap server operating in proxy
    mode). Once the dlv-reverse command is connected, the dlv dap
    server will forward all the messages from the client (including
    the initialize request and the launch request) and relay all
    the responses from the dlv-reverse back to the client.
    
    This command is internal use only, so it's intentionally hidden
    from users - dlv usage and manual will not display info about
    this.
    
    Update golang/vscode-go#124
    hyangah committed Jul 4, 2021
    Configuration menu
    Copy the full SHA
    cbfed32 View commit details
    Browse the repository at this point in the history
  2. cmd/dlv: move dap-reverse to a mode of dap command

    --connect=host:port flag will make dap subcommand launch the single session
    DAP process in reverse mode.
    hyangah committed Jul 4, 2021
    Configuration menu
    Copy the full SHA
    e6f72d2 View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2021

  1. Configuration menu
    Copy the full SHA
    6538d62 View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2021

  1. Configuration menu
    Copy the full SHA
    d974e4d View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2021

  1. Configuration menu
    Copy the full SHA
    596c5ba View commit details
    Browse the repository at this point in the history
  2. dap: address polina's comments and simplify

    Combined NewServer and NewReverseServer.
    hyangah committed Sep 24, 2021
    Configuration menu
    Copy the full SHA
    fa0574a View commit details
    Browse the repository at this point in the history

Commits on Oct 8, 2021

  1. Merge branch 'master' into dapreverse

    Restructure code to work with Session/Server.
    hyangah committed Oct 8, 2021
    Configuration menu
    Copy the full SHA
    4664030 View commit details
    Browse the repository at this point in the history
  2. fix logging

    hyangah committed Oct 8, 2021
    Configuration menu
    Copy the full SHA
    d818a10 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2021

  1. Configuration menu
    Copy the full SHA
    962ccae View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2021

  1. Configuration menu
    Copy the full SHA
    104d76b View commit details
    Browse the repository at this point in the history
  2. dap: made program error to fatal error

    This commit made misuse of Run and RunWithClient trigger fatal
    logging which will print the call stack (so one can easily spot
    how it was called) and terminate the process.
    hyangah committed Oct 13, 2021
    Configuration menu
    Copy the full SHA
    e58f24b View commit details
    Browse the repository at this point in the history