假设我在控制台中获得了这样的堆栈跟踪:
如何复制保留格式的堆栈跟踪?
当我复制这个堆栈跟踪时,我得到一条长行:
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
有没有办法以更结构化的方式复制堆栈跟踪?
答案 0 :(得分:0)
复制粘贴似乎现在格式正常。刚从错误中复制了这个:
Uncaught ReferenceError: osdlfm is not defined
at <anonymous>:1:1
at ad.js:12
at new Promise (<anonymous>)
at HTMLDocument.n (ad.js:12)
扩展错误后显示的堆栈跟踪格式也正常:
(anonymous) @ VM183:1
(anonymous) @ ad.js:12
n @ ad.js:12
版本信息: