Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand Debug API for extensions #30338

Closed
weinand opened this issue Jul 10, 2017 · 1 comment
Closed

Expand Debug API for extensions #30338

weinand opened this issue Jul 10, 2017 · 1 comment
Assignees
Labels
api debug Debug viewlet, configurations, breakpoints, adapter issues on-testplan
Milestone

Comments

@weinand
Copy link
Contributor

weinand commented Jul 10, 2017

e.g. sessionStarted, sessionTerminated, sendCustomRequest, handleCustomEvent

@vscodebot vscodebot bot added the api label Jul 10, 2017
@weinand weinand added this to the July 2017 milestone Jul 10, 2017
@weinand weinand self-assigned this Jul 10, 2017
@weinand weinand added the debug Debug viewlet, configurations, breakpoints, adapter issues label Jul 10, 2017
@weinand
Copy link
Contributor Author

weinand commented Jul 17, 2017

new API:

/**
 * 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. 'workspaceRoot') are resolved against the given folder.
 * @param folder The workspace folder for looking up named configurations and resolving variables or undefined.
 * @param nameOrConfiguration Either the name of a debug or compound configuration or a DebugConfiguration object.
 * @return A thenable that resolves when debugging could be successfully started.
 */
export function startDebugging(folder: WorkspaceFolder | undefined, nameOrConfiguration: string | DebugConfiguration): Thenable<boolean>;

/**
 * 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`.
 */
export let activeDebugSession: DebugSession | undefined;

/**
 * An [event](#Event) which fires when the [active debug session](#debug.activeDebugSession)
 * has changed. *Note* that the event also fires when the active debug session changes
 * to `undefined`.
 */
export const onDidChangeActiveDebugSession: Event<DebugSession | undefined>;

/**
 * An [event](#Event) which fires when a custom DAP event is received from the debug session.
 */
export const onDidReceiveDebugSessionCustomEvent: Event<DebugSessionCustomEvent>;

/**
 * An [event](#Event) which fires when a debug session has terminated.
 */
export const onDidTerminateDebugSession: Event<DebugSession>;

@weinand weinand closed this as completed Jul 17, 2017
@weinand weinand mentioned this issue Jul 26, 2017
1 task
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api debug Debug viewlet, configurations, breakpoints, adapter issues on-testplan
Projects
None yet
Development

No branches or pull requests

1 participant