Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace debug

Namespace for debug functionality.

Index

Variables

Let activeDebugConsole

activeDebugConsole: DebugConsole

The currently active debug console.

Let activeDebugSession

activeDebugSession: DebugSession | undefined

The currently active debug session or undefined. The active debug session is the one represented by the debug action floating window or the one currently shown in the drop down menu of the debug action floating window. If no debug session is active, the value is undefined.

Let breakpoints

breakpoints: Breakpoint[]

List of breakpoints.

Functions

addBreakpoints

Const onDidChangeActiveDebugSession

Const onDidChangeBreakpoints

Const onDidReceiveDebugSessionCustomEvent

Const onDidStartDebugSession

Const onDidTerminateDebugSession

registerDebugAdapterDescriptorFactory

registerDebugAdapterTrackerFactory

registerDebugConfigurationProvider

  • Register a debug configuration provider for a specific debug type. The optional triggerKind can be used to specify when the provideDebugConfigurations method of the provider is triggered. Currently there are two situations: (1) providing debug configurations to populate a newly created launch.json (2) providing dynamically generated configurations when the user asks for them through the UI (e.g. via the "Select and Start Debugging" command). Please note that the triggerKind argument only applies to the provideDebugConfigurations method, the resolveDebugConfiguration methods are not affected at all. Registering a single provider with resolve methods for different trigger kinds results in the same resolve methods being called multiple times. More than one provider can be registered for the same type.

    Parameters

    Returns Disposable

    A Disposable that unregisters this provider when being disposed.

removeBreakpoints

  • removeBreakpoints(breakpoints: Breakpoint[]): void

startDebugging

  • Start debugging by using either a named launch or named compound configuration, or by directly passing a DebugConfiguration. The named configurations are looked up in '.vscode/launch.json' found in the given folder. Before debugging starts, all unsaved files are saved and the launch configurations are brought up-to-date. Folder specific variables used in the configuration (e.g. '${workspaceFolder}') are resolved against the given folder.

    Parameters

    Returns PromiseLike<boolean>

    A thenable that resolves when debugging could be successfully started.