(reason?: string, description?: string)
| 376 | } |
| 377 | |
| 378 | public waitForStop(reason?: string, description?: string): Promise<DebugProtocol.Event> { |
| 379 | return this.waitForEvent( |
| 380 | 'stopped', |
| 381 | description, |
| 382 | undefined, |
| 383 | // Skip entry stops because they always occur. |
| 384 | reason !== "entry" ? (e) => e.body?.reason !== "entry" : undefined, |
| 385 | ); |
| 386 | } |
| 387 | |
| 388 | /* |
| 389 | * Returns a promise that will resolve if a 'stopped' event was received within some specified time |