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

Explore API for injecting a middle-man into DAP communication #55945

Closed
weinand opened this issue Aug 7, 2018 · 1 comment
Closed

Explore API for injecting a middle-man into DAP communication #55945

weinand opened this issue Aug 7, 2018 · 1 comment
Assignees
Labels
api-proposal debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality on-testplan

Comments

@weinand
Copy link
Contributor

weinand commented Aug 7, 2018

Provide API to "tap" on the DAP message flow so that LiveShare no longer needs to wrap or proxy DAs.

@weinand weinand added feature-request Request for new features or functionality debug Debug viewlet, configurations, breakpoints, adapter issues labels Aug 7, 2018
@weinand weinand added this to the August 2018 milestone Aug 7, 2018
@weinand weinand self-assigned this Aug 7, 2018
@weinand weinand modified the milestones: August 2018, September 2018 Aug 27, 2018
@weinand
Copy link
Contributor Author

weinand commented Sep 20, 2018

New proposed API:

https://github.com/Microsoft/vscode/blob/88b85b66c3abc225d09696a0943aa652a83cfdc5/src/vs/vscode.proposed.d.ts#L560-L567

Example: tracing DAP for all debug sessions:

vscode.debug.registerDebugConfigurationProvider('*', {
  provideDebugAdapterTracker(session: vscode.DebugSession, folder: WorkspaceFolder | undefined, config: DebugConfiguration, token?: CancellationToken): ProviderResult<vscode.IDebugAdapterTracker> {
    return {
      startDebugAdapter: () => console.log(`startDebugAdapter: ${session.id}`),
      fromDebugAdapter: m => console.log(`<=== ${JSON.stringify(m, undefined, 2)}`),
      toDebugAdapter: m => console.log(`===> ${JSON.stringify(m, undefined, 2)}`),
      debugAdapterError: err => console.log(`debugAdapterError: ${err}`),
      debugAdapterExit: (code, signal) => console.log(`debugAdapterExit: ${code}`),
      stopDebugAdapter: () => console.log(`stopDebugAdapter: ${session.id}`)
    };
  }
});

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api-proposal debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality on-testplan
Projects
None yet
Development

No branches or pull requests

1 participant