Calculates on this device. File exports run online.
Metro Source Map Viewer
Paste or open the source map of a React Native bundle and the stack trace of an error (the red box, adb logcat or a crash report). Each frame of the bundle gets its original file and line, and the name of its function from the function maps Metro writes into the map.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose the button below them.
Your result
How it was worked out
How to decode a React Native stack trace
- Make the map with the bundle: npx react-native bundle … --sourcemap-output index.android.bundle.map (Expo and Xcode builds write one too).
- Choose Turn a stack trace back, open the map and paste the stack trace.
- Press Look up the frames: the stack comes back with your files, lines and function names.
What Metro adds to a map
- x_facebook_sources: a function map for each source. It says where each function starts and where the enclosing one goes on, so that frames get real names even when the code is minified.
- x_google_ignoreList: library files (node_modules) that debuggers hide.
- x_metro_module_paths and x_hermes_function_offsets: listed when present.
Limits you should know
- Stack traces of a Hermes bytecode bundle (address at …) are looked up as columns; frames that need Hermes function ids are not resolved.
- Function maps are read as Metro writes them; a map without them leaves the frames their minified names.
- Maps of more than 30 MB are read in the box below.
Privacy
Maps and stack traces are read in your browser. Only what you choose in the box below is sent to the Toolvito server, to be read there. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.