(limit: number)
| 62 | } |
| 63 | |
| 64 | async loadFrames(limit: number): Promise<StackFrame[]> { |
| 65 | while (this._frames.length < limit && this._asyncStackTraceId) { |
| 66 | if (this._asyncStackTraceId.debuggerId) |
| 67 | this._lastFrameThread = Thread.threadForDebuggerId(this._asyncStackTraceId.debuggerId); |
| 68 | if (!this._lastFrameThread) { |
| 69 | this._asyncStackTraceId = undefined; |
| 70 | break; |
| 71 | } |
| 72 | const response = await this._lastFrameThread |
| 73 | .cdp() |
| 74 | .Debugger.getStackTrace({ stackTraceId: this._asyncStackTraceId }); |
| 75 | this._asyncStackTraceId = undefined; |
| 76 | if (response) this._appendStackTrace(this._lastFrameThread, response.stackTrace); |
| 77 | } |
| 78 | return this._frames; |
| 79 | } |
| 80 | |
| 81 | frame(frameId: number): StackFrame | undefined { |
| 82 | return this._frameById.get(frameId); |
no test coverage detected