Interface DebugAdapter

A debug adapter that implements the Debug Adapter Protocol can be registered with the editor if it implements the DebugAdapter interface.

interface DebugAdapter {
    onDidSendMessage: Event<DebugProtocolMessage>;
    dispose(): void;
    handleMessage(message): void;
}

Hierarchy (view full)

Properties

onDidSendMessage: Event<DebugProtocolMessage>

An event which fires after the debug adapter has sent a Debug Adapter Protocol message to the editor. Messages can be requests, responses, or events.

Methods

  • Handle a Debug Adapter Protocol message. Messages can be requests, responses, or events. Results or errors are returned via onSendMessage events.

    Parameters

    Returns void