source-map-visualization
source-map-visualization copied to clipboard
Add goto row and column feature
I have error stack from production side like
"stack": "construct@[native code]\nconstruct@[native code]\no@capacitor://localhost/static/js/main.19f32b23.js:2:384533\nconstruct@[native code]\n@capacitor://localhost/static/js/main.19f32b23.js:2:373920\nn:2:372417\nPromise@[native code]\n@capacitor://localhost/static/js/main.19f32b23.js:2:372308\nd:2:372417\nPromise@[native code]\n@capacitor://localhost/static/js/main.19f32b23.js:2:372308\npromiseReactionJob@[native code]",
And it's not possible with mouse scroll to 2:384533
I've added window.generatedTextArea = generatedTextArea in code and use generatedTextArea.scrollTo method from devtools console. But it's not very convinient. It's better to add a textarea where I paste stacktrace and search there pairs with format number:number and scrollto it by click. It will make error stack analyzing much more easier and fast.
can you give a example to scroll to 2:384533? I need it too
What worked for me is to turn on "wrap" option and then hover over the right panel, and look at line/offset numbers at the bottom, this way I can get really close to row/column that I'm looking for