Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DebugService

This service provides functionality to configure and to start a new debug adapter session. The workflow is the following. If user wants to debug an application and there is no debug configuration associated with the application then the list of available providers is requested to create suitable debug configuration. When configuration is chosen it is possible to alter the configuration by filling in missing values or by adding/changing/removing attributes. For this purpose the #resolveDebugConfiguration method is invoked. After that the debug adapter session will be started.

Hierarchy

  • Disposable
    • DebugService

Index

Methods

createDebugSession

debugTypes

  • debugTypes(): Promise<string[]>

dispose

  • dispose(): void
  • Dispose this object.

    Returns void

getConfigurationSnippets

  • getConfigurationSnippets(): Promise<IJSONSchemaSnippet[]>

getDebuggersForLanguage

getSchemaAttributes

  • getSchemaAttributes(debugType: string): Promise<IJSONSchema[]>
  • Provides the schema attributes.

    Parameters

    • debugType: string

      The registered debug type

    Returns Promise<IJSONSchema[]>

    An JSON Schema describing the configuration attributes for the given debug type

provideDebugConfigurations

  • provideDebugConfigurations(debugType: string, workspaceFolderUri: undefined | string): Promise<DebugConfiguration[]>

Optional provideDynamicDebugConfigurations

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

resolveDebugConfiguration

resolveDebugConfigurationWithSubstitutedVariables

terminateDebugSession

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