startDebuggingAsync

fun startDebuggingAsync(folder: WorkspaceFolder?, nameOrConfiguration: JsAny, parentSessionOrOptions: JsAny = definedExternally): PromiseLike<JsBoolean>(source)

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

folder

The workspace folder for looking up named configurations and resolving variables or undefined for a non-folder setup.

nameOrConfiguration

Either the name of a debug or compound configuration or a DebugConfiguration object.

parentSessionOrOptions

Debug session options. When passed a parent debug session, assumes options with just this parent session.