-
Notifications
You must be signed in to change notification settings - Fork 39.2k
Debug API #28500
Copy link
Copy link
Closed
Labels
apidebugDebug viewlet, configurations, breakpoints, adapter issuesDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionalityRequest for new features or functionality
Metadata
Metadata
Assignees
Labels
apidebugDebug viewlet, configurations, breakpoints, adapter issuesDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionalityRequest for new features or functionality
We are looking into adding debug API to our vscode.d.ts. In order to design this as best as possible let's first look at the use cases and the current use of commands.
Use Cases
Commands
Extension --> VS Code
vscode.startDebug- extension can start a debug session by calling this commandcustomDebugRequest- extension can send any DAP request to the currently active debug adapterdebug.logToDebugConsole- extension can log a string to the debug consoleVS Code --> Extension
startSessionCommand- if contributed vscode calls this command instead of starting a debug session on its owninitialConfigurations- if contributed vscode calls this command to get the initial content of thelaunch.jsonProposal
Minimal API proposal by @weinand and me. If
nameandtypeshould be a part ofDebugSessionis very coraleted to the question @weinand raises below.