Provides debug configuration to the debug service. If more than one debug configuration provider is registered for the same type, debug configurations are concatenated in arbitrary order.
The workspace folder for which the configurations are used or undefined
for a folderless setup.
A cancellation token.
An array of debug configurations.
Resolves a debug configuration by filling in missing values or by adding/changing/removing attributes. If more than one debug configuration provider is registered for the same type, the resolveDebugConfiguration calls are chained in arbitrary order and the initial debug configuration is piped through the chain. Returning the value 'undefined' prevents the debug session from starting. Returning the value 'null' prevents the debug session from starting and opens the underlying debug configuration instead.
The workspace folder from which the configuration originates from or undefined
for a folderless setup.
The debug configuration to resolve.
A cancellation token.
The resolved debug configuration or undefined or null.
This hook is directly called after 'resolveDebugConfiguration' but with all variables substituted. It can be used to resolve or verify a debug configuration by filling in missing values or by adding/changing/removing attributes. If more than one debug configuration provider is registered for the same type, the 'resolveDebugConfigurationWithSubstitutedVariables' calls are chained in arbitrary order and the initial debug configuration is piped through the chain. Returning the value 'undefined' prevents the debug session from starting. Returning the value 'null' prevents the debug session from starting and opens the underlying debug configuration instead.
The workspace folder from which the configuration originates from or undefined
for a folderless setup.
The debug configuration to resolve.
A cancellation token.
The resolved debug configuration or undefined or null.
友链:VS Code 中文文档 | VS Code 官网文档 | VS Code 扩展市场
A debug configuration provider allows to add debug configurations to the debug service and to resolve launch configurations before they are used to start a debug session. A debug configuration provider is registered via debug.registerDebugConfigurationProvider.