Suppose I get a stacktrace like this in the console:
How can I copy the stacktrace preserving the formatting?
When I copy this stacktrace I get one long line:
VM1130:2 Foobar not foundplayer.store.registerListener @ VM1130:2logErrorsInCallback @ magic_store:221registerListener @ magic_store:240registerListenerThis @ magic_store:246(anonymous function) @ VM1130:2InjectedScript._evaluateOn @ (program):878InjectedScript._evaluateAndWrap @ (program):811InjectedScript.evaluate @ (program):667
Is there a way to copy a stack trace in a more structured way?
Copy a stack trace to your clipboard:Click the paste as new tab but. Select a tab, make sure your cursor is not in the text editor, Paste your stack trace with Ctrl + V.
Copy-pasting seems to format OK now. Just copied this from an error:
Uncaught ReferenceError: osdlfm is not defined
at <anonymous>:1:1
at ad.js:12
at new Promise (<anonymous>)
at HTMLDocument.n (ad.js:12)
The stack trace that shows up after I expand the error formats OK, too:
(anonymous) @ VM183:1
(anonymous) @ ad.js:12
n @ ad.js:12
Version info:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With