Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PluginDebugService

Debug service to work with plugin and extension contributions.

Hierarchy

  • PluginDebugService

Implements

Index

Constructors

constructor

Properties

Protected Readonly connectionProvider

connectionProvider: WebSocketConnectionProvider

Protected Readonly contributors

contributors: Map<string, PluginDebugAdapterContribution> = ...

Protected Readonly debuggers

debuggers: DebuggerContribution[] = []

Protected delegated

delegated: DebugService

Protected Readonly sessionId2contrib

sessionId2contrib: Map<string, PluginDebugAdapterContribution> = ...

Protected Readonly toDispose

toDispose: DisposableCollection = ...

Protected Readonly workspaceService

workspaceService: WorkspaceService

Methods

createDebugSession

  • createDebugSession(config: DebugConfiguration): Promise<string>

debugTypes

  • debugTypes(): Promise<string[]>

dispose

  • dispose(): void

getConfigurationSnippets

  • getConfigurationSnippets(): Promise<IJSONSchemaSnippet[]>

getDebuggersForLanguage

  • getDebuggersForLanguage(language: string): Promise<DebuggerDescription[]>

getSchemaAttributes

  • getSchemaAttributes(debugType: string): Promise<IJSONSchema[]>

Protected init

  • init(): void

provideDebugConfigurations

  • provideDebugConfigurations(debugType: "cancel" | "pause" | "attach" | "breakpointLocations" | "completions" | "configurationDone" | "continue" | "dataBreakpointInfo" | "disassemble" | "disconnect" | "evaluate" | "exceptionInfo" | "goto" | "gotoTargets" | "initialize" | "launch" | "loadedSources" | "modules" | "next" | "readMemory" | "restart" | "restartFrame" | "reverseContinue" | "scopes" | "setBreakpoints" | "setDataBreakpoints" | "setExceptionBreakpoints" | "setExpression" | "setFunctionBreakpoints" | "setInstructionBreakpoints" | "setVariable" | "source" | "stackTrace" | "stepBack" | "stepIn" | "stepInTargets" | "stepOut" | "terminate" | "terminateThreads" | "threads" | "variables" | "writeMemory", workspaceFolderUri: undefined | string): Promise<DebugConfiguration[]>
  • Parameters

    • debugType: "cancel" | "pause" | "attach" | "breakpointLocations" | "completions" | "configurationDone" | "continue" | "dataBreakpointInfo" | "disassemble" | "disconnect" | "evaluate" | "exceptionInfo" | "goto" | "gotoTargets" | "initialize" | "launch" | "loadedSources" | "modules" | "next" | "readMemory" | "restart" | "restartFrame" | "reverseContinue" | "scopes" | "setBreakpoints" | "setDataBreakpoints" | "setExceptionBreakpoints" | "setExpression" | "setFunctionBreakpoints" | "setInstructionBreakpoints" | "setVariable" | "source" | "stackTrace" | "stepBack" | "stepIn" | "stepInTargets" | "stepOut" | "terminate" | "terminateThreads" | "threads" | "variables" | "writeMemory"
    • workspaceFolderUri: undefined | string

    Returns Promise<DebugConfiguration[]>

provideDynamicDebugConfigurations

  • provideDynamicDebugConfigurations(): Promise<{ configurations: DebugConfiguration[]; type: string }[]>

registerDebugAdapterContribution

registerDebugger

resolveDebugConfiguration

  • resolveDebugConfiguration(config: DebugConfiguration, workspaceFolderUri: undefined | string): Promise<DebugConfiguration>

resolveDebugConfigurationWithSubstitutedVariables

  • resolveDebugConfigurationWithSubstitutedVariables(config: DebugConfiguration, workspaceFolderUri: undefined | string): Promise<DebugConfiguration>

Protected resolveDynamicConfigurationsForType

  • resolveDynamicConfigurationsForType(type: string, contributor: PluginDebugAdapterContribution): Promise<{ configurations: DebugConfiguration[]; type: string }>

terminateDebugSession

  • terminateDebugSession(sessionId: string): Promise<void>

unregisterDebugAdapterContribution

  • unregisterDebugAdapterContribution(debugType: string): void