| 76 | } |
| 77 | |
| 78 | function parseFrameLine(line: string): DebugStackFrame | null { |
| 79 | const trimmed = line.trim(); |
| 80 | const frameAtMatch = trimmed.match(/^frame #(\d+):\s*(.+?)\s+at\s+(.+)$/); |
| 81 | if (frameAtMatch) { |
| 82 | return { |
| 83 | index: Number(frameAtMatch[1]), |
| 84 | symbol: frameAtMatch[2].trim(), |
| 85 | displayLocation: frameAtMatch[3].trim(), |
| 86 | }; |
| 87 | } |
| 88 | |
| 89 | const frameMatch = trimmed.match(/^frame #(\d+):\s*(.+)$/); |
| 90 | if (frameMatch) { |
| 91 | return { |
| 92 | index: Number(frameMatch[1]), |
| 93 | symbol: frameMatch[2].trim(), |
| 94 | displayLocation: 'unknown', |
| 95 | }; |
| 96 | } |
| 97 | |
| 98 | return null; |
| 99 | } |
| 100 | |
| 101 | function parseStackOutput(output: string, params: DebugStackParams): DebugThread[] { |
| 102 | const lines = output |