Commit 3625673e authored by RobPruzan's avatar RobPruzan

debug

parent eb506d6f
...@@ -85,7 +85,7 @@ export function preprocessStackTrace( ...@@ -85,7 +85,7 @@ export function preprocessStackTrace(
): string { ): string {
const toForwardSlashes = (p: string) => p.replace(/\\/g, '/') const toForwardSlashes = (p: string) => p.replace(/\\/g, '/')
return stackTrace const trace = stackTrace
.split('\n') .split('\n')
.map((line) => { .map((line) => {
const match = line.match(/^(\s*at\s+.*?)\s+\(([^)]+)\)$/) const match = line.match(/^(\s*at\s+.*?)\s+\(([^)]+)\)$/)
...@@ -110,6 +110,9 @@ export function preprocessStackTrace( ...@@ -110,6 +110,9 @@ export function preprocessStackTrace(
return line return line
}) })
.join('\n') .join('\n')
console.log('trace', trace)
return trace
} }
const cache = new LRUCache< const cache = new LRUCache<
...@@ -131,8 +134,10 @@ async function getSourceMappedStackFramesInternal( ...@@ -131,8 +134,10 @@ async function getSourceMappedStackFramesInternal(
stack: stackTrace, stack: stackTrace,
} }
} }
console.log('frames', frames)
const mappingResults = await mapFramesUsingBundler(frames, ctx) const mappingResults = await mapFramesUsingBundler(frames, ctx)
console.log('results', mappingResults)
const processedFrames = mappingResults const processedFrames = mappingResults
.map((result, index) => ({ .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