How to use the @theia/debug/lib/browser/model/debug-breakpoint.DebugBreakpoint function in @theia/debug

To help you get started, we’ve selected a few @theia/debug examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github eclipse-theia / theia / packages / plugin-ext / src / main / browser / debug / debug-main.ts View on Github external
async $removeBreakpoints(breakpoints: Breakpoint[]): Promise {
        const ids = new Set();
        breakpoints.forEach(b => ids.add(b.id));
        for (const origin of this.breakpointsManager.findMarkers({ dataFilter: data => ids.has(data.id) })) {
            const breakpoint = new DebugBreakpoint(origin.data, this.labelProvider, this.breakpointsManager, this.editorManager, this.sessionManager.currentSession);
            breakpoint.remove();
        }
    }