| 288 | } |
| 289 | |
| 290 | protected initDebugger() { |
| 291 | this.miDebugger.on('quit', this.quitEvent.bind(this)); |
| 292 | this.miDebugger.on('exited-normally', this.quitEvent.bind(this)); |
| 293 | this.miDebugger.on('stopped', this.stopEvent.bind(this)); |
| 294 | this.miDebugger.on('msg', this.handleMsg.bind(this)); |
| 295 | this.miDebugger.on('breakpoint', this.handleBreakpoint.bind(this)); |
| 296 | this.miDebugger.on('watchpoint', this.handleWatchpoint.bind(this, 'hit')); |
| 297 | this.miDebugger.on('watchpoint-scope', this.handleWatchpoint.bind(this, 'scope')); |
| 298 | this.miDebugger.on('step-end', this.handleBreak.bind(this)); |
| 299 | this.miDebugger.on('step-out-end', this.handleBreak.bind(this)); |
| 300 | this.miDebugger.on('signal-stop', this.handlePause.bind(this)); |
| 301 | this.miDebugger.on('running', this.handleRunning.bind(this)); |
| 302 | this.miDebugger.on('continue-failed', this.handleContinueFailed.bind(this)); |
| 303 | this.miDebugger.on('thread-created', this.handleThreadCreated.bind(this)); |
| 304 | this.miDebugger.on('thread-exited', this.handleThreadExited.bind(this)); |
| 305 | this.miDebugger.on('thread-selected', this.handleThreadSelected.bind(this)); |
| 306 | this.miDebugger.on('thread-group-exited', this.handleThreadGroupExited.bind(this)); |
| 307 | } |
| 308 | |
| 309 | protected initializeRequest(response: DebugProtocol.InitializeResponse, args: DebugProtocol.InitializeRequestArguments): void { |
| 310 | response.body.supportsHitConditionalBreakpoints = true; |