onDidChangeActiveDebugSession

An Event which fires when the active debug session has changed. Note that the event also fires when the active debug session changes to undefined.

Online Documentation