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.

interface DebugService {
    onDidChangeDebugConfigurationProviders: Event<void>;
    onDidChangeDebuggers?: Event<void>;
    createDebugSession(config, workspaceFolderUri): Promise<string>;
    debugTypes(): Promise<string[]>;
    fetchDynamicDebugConfiguration(name, type, folder?): Promise<undefined | DebugConfiguration>;
    getConfigurationSnippets(): Promise<IJSONSchemaSnippet[]>;
    getDebuggersForLanguage(language): Promise<DebuggerDescription[]>;
    getSchemaAttributes(debugType): Promise<IJSONSchema[]>;
    provideDebugConfigurations(debugType, workspaceFolderUri): Promise<DebugConfiguration[]>;
    provideDebuggerVariables(debugType): Promise<CommandIdVariables>;
    provideDynamicDebugConfigurations?(folder?): Promise<Record<string, DebugConfiguration[]>>;
    resolveDebugConfiguration(config, workspaceFolderUri): Promise<undefined | null | DebugConfiguration>;
    resolveDebugConfigurationWithSubstitutedVariables(config, workspaceFolderUri): Promise<undefined | null | DebugConfiguration>;
    terminateDebugSession(sessionId): Promise<void>;
}

Hierarchy

  • Disposable
    • DebugService

Implemented by

Properties

onDidChangeDebugConfigurationProviders: Event<void>

Event handle to indicate when one or more dynamic debug configuration providers have been registered or unregistered.

onDidChangeDebuggers?: Event<void>

Methods

  • 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