chrome 谷歌浏览器console使用脚本时报错的处理

1. ErrorEvent {isTrusted: true, message: 'Uncaught SyntaxError: Unexpected end of input', filename: 'http://localhost:7456/', lineno: 1, colno: 4, …}

  1. isTrusted: true
  2. bubbles: false
  3. cancelBubble: false
  4. cancelable: true
  5. colno: 4
  6. composed: false
  7. currentTarget: Window {window: Window, self: Window, document: document, name: '', location: Location, …}
  8. defaultPrevented: true
  9. error: SyntaxError: Unexpected end of input
  10. eventPhase: 0
  11. filename: "http://localhost:7456/"
  12. lineno: 1
  13. message: "Uncaught SyntaxError: Unexpected end of input"
  14. path: [Window]
  15. returnValue: false
  16. srcElement: Window {window: Window, self: Window, document: document, name: '', location: Location, …}
  17. target: Window {window: Window, self: Window, document: document, name: '', location: Location, …}
  18. timeStamp: 87911.60000002384
  19. type: "error"
  20. [[Prototype]]: ErrorEvent

更新了新版本的浏览器,web调试时经常会出现报错。按下面方法可以去掉报错。

我也遇到你同样的问题,但是我的面板和你不太一样,我没找到对应的选项

image
改成英文也能找到:外观- > 语言 -> us

找到了,完美,谢谢,我一直在为断点后出现的错误苦恼,现在解决了,太感谢~