How to copy stack trace from chrome console?

Suppose on the console I get a stack like this:

enter image description here

How to copy stack while maintaining formatting?

When I copy this stack, 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 the stack trace in a more structured way?

+6
source share
1 answer

Copy paste seems to now format OK. Just copy this from the 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 appears after I also extend the error formats:

 (anonymous) @ VM183:1 (anonymous) @ ad.js:12 n @ ad.js:12 

console stack trace

Version Information:

  • Google Chrome: 63.0.3239.132 (official build) (64-bit)
  • View: 2e6edcfee630baa3775f37cb11796b1603a64360-refs / branch-heads / 3239 @ {# 709}
  • OS: Mac OS X
0
source

All Articles