| 2000 | } |
| 2001 | |
| 2002 | private async doPauseExecContinue(createBreakpoints: () => Promise<void>, pendContinue: PendingContinue) { |
| 2003 | if (this.miDebugger.status !== 'running') { // May not even have started just yet |
| 2004 | await createBreakpoints(); |
| 2005 | } else { |
| 2006 | this.disableSendStoppedEvents = true; |
| 2007 | pendContinue.shouldContinue = true; |
| 2008 | this.miDebugger.once('generic-stopped', () => { createBreakpoints(); }); |
| 2009 | this.miDebugger.sendCommand('exec-interrupt'); |
| 2010 | } |
| 2011 | } |
| 2012 | |
| 2013 | protected setBreakPointsRequest( |
| 2014 | r: DebugProtocol.SetBreakpointsResponse, |