Commit 3625673e authored by RobPruzan's avatar RobPruzan

debug

parent eb506d6f
......@@ -85,7 +85,7 @@ export function preprocessStackTrace(
): string {
const toForwardSlashes = (p: string) => p.replace(/\\/g, '/')
return stackTrace
const trace = stackTrace
.split('\n')
.map((line) => {
const match = line.match(/^(\s*at\s+.*?)\s+\(([^)]+)\)$/)
......@@ -110,6 +110,9 @@ export function preprocessStackTrace(
return line
})
.join('\n')
console.log('trace', trace)
return trace
}
const cache = new LRUCache<
......@@ -131,8 +134,10 @@ async function getSourceMappedStackFramesInternal(
stack: stackTrace,
}
}
console.log('frames', frames)
const mappingResults = await mapFramesUsingBundler(frames, ctx)
console.log('results', mappingResults)
const processedFrames = mappingResults
.map((result, index) => ({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment