source-map-visualization icon indicating copy to clipboard operation
source-map-visualization copied to clipboard

Add goto row and column feature

Open tonn opened this issue 2 years ago • 1 comments

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.

tonn avatar Mar 16 '23 20:03 tonn

can you give a example to scroll to 2:384533? I need it too

chenjigeng avatar Dec 04 '24 03:12 chenjigeng

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

Maxim-Mazurok avatar Apr 04 '25 02:04 Maxim-Mazurok