(element: IElement)
| 40 | } |
| 41 | |
| 42 | function toStackFrame(element: IElement): IStackFrame { |
| 43 | const name = findElement(element, e => /\bfile-name\b/.test(e.className))!; |
| 44 | const line = findElement(element, e => /\bline-number\b/.test(e.className))!; |
| 45 | const lineNumber = line.textContent ? parseInt(line.textContent.split(':').shift() || '0') : 0; |
| 46 | |
| 47 | return { |
| 48 | name: name.textContent || '', |
| 49 | lineNumber |
| 50 | }; |
| 51 | } |
| 52 | |
| 53 | export class Debug extends Viewlet { |
| 54 |
no test coverage detected
searching dependent graphs…