Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

console堆栈信息优化 #33

Open
nonameShijian opened this issue Oct 12, 2024 · 1 comment
Open

console堆栈信息优化 #33

nonameShijian opened this issue Oct 12, 2024 · 1 comment

Comments

@nonameShijian
Copy link
Contributor

在使用v8引擎的浏览器网页,或许可以使用Error.captureStackTrace来优化堆栈信息忽略掉控制台本身调用的堆栈

例如:

at eval (eval at _proto.evaluate (https://localhost/sdk.js:2:12735), <anonymous>:4:1)
at eval (<anonymous>)
at _proto.evaluate (https://localhost/sdk.js:2:12735)
at t.execute (https://localhost/sdk.js:2:77160)
at https://localhost/sdk.js:2:80039
at e._callEventListener (https://localhost/sdk.js:2:24309)
at https://localhost/sdk.js:2:17992
at Array.forEach (<anonymous>)
at WebSocket._handleMessage (https://localhost/sdk.js:2:17962)
@Nice-PLQ
Copy link
Owner

确实可以做下过滤

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants