MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / parseFrameLine

Function parseFrameLine

src/mcp/tools/debugging/debug_stack.ts:78–99  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

76}
77
78function 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
101function parseStackOutput(output: string, params: DebugStackParams): DebugThread[] {
102 const lines = output

Callers 1

parseStackOutputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected