0

I want to capture a breakpoint event on the debugger adapter in order to create an action in response.

Can it be done?

  • there are a few extensions hyou can download and install, depending on what language you are using: https://code.visualstudio.com/docs/editor/debugging – gianni Jul 29 '19 at 08:52
  • Hi @gianni, unfortunately it does not cover my question. I want to capture when a breakpoint triggers and send an http request to some server following the breakpoint trigger event – orshefi Jul 30 '19 at 11:41

1 Answers1

1

Based on the VS Code API, the event onDidChangeBreakpoints allows to capture the status of the breakpoints

Example:

const vscode = require('vscode');

context.subscriptions.push(vscode.debug.onDidChangeBreakpoints(
        session => {
            vscode.debug.registerDebugAdapterDescriptorFactory
            console.log("Breakpoint changed");              
        }
    ))

session contains added, changed and removed properties.

Manuel Pap
  • 1,309
  • 7
  • 23
  • 52