解决VConsole代理原生console方法,无法展示原始代码行数的问题

使用VConsole,在Chrome Devtools,无法查看原始代码的行数,不容易调试,经过尝试有这几种方法:

1. 使用console.dir()方法

使用没有代理过的其他方法,如console.dir()

2. 使用devtools的ignore List

Chrome 设置中的 ignore List 添加配置即可,添加这一项: /vconsole\-3\.3\.4\.min\.js\b
匹配模式为你的文件名,你可以根据具体文件名来设置。

image.png

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享