最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - google chrome js console show thin red line, no printed error text - Stack Overflow

programmeradmin2浏览0评论

I'm getting some errors in javascript, but for some reason google chrome wont print the error but shows only a thin red line. Also strange that when the thin red line is displayed the console window scrolls up, but not to the very top of history.

Has anyone seen this before and is there something I can do to get the actual text of errors displayed?

UPDATE: looks that these messages are occurring as result of exceptions in promises. When I debug and step through console.error(ex.message) code it still prints it as a thin red line. Maybe something to do with a permission to use console from a promise thread?

running Google Chrome Version 65.0.3325.181 (Official Build) (64-bit) on Ubuntu Linux.

I'm getting some errors in javascript, but for some reason google chrome wont print the error but shows only a thin red line. Also strange that when the thin red line is displayed the console window scrolls up, but not to the very top of history.

Has anyone seen this before and is there something I can do to get the actual text of errors displayed?

UPDATE: looks that these messages are occurring as result of exceptions in promises. When I debug and step through console.error(ex.message) code it still prints it as a thin red line. Maybe something to do with a permission to use console from a promise thread?

running Google Chrome Version 65.0.3325.181 (Official Build) (64-bit) on Ubuntu Linux.

Share Improve this question edited Mar 28, 2018 at 21:38 Mobigital asked Mar 28, 2018 at 18:41 MobigitalMobigital 7597 silver badges15 bronze badges 1
  • I'm seeing this as well, but my case doesn't appear to be related to promises. – Chris Patty Commented Apr 20, 2018 at 5:13
Add a ment  | 

3 Answers 3

Reset to default 1

I was having the same problem with the red line. Ran the site in Firefox and was able to see the error. In my case there were multiple errors happening in a forEach loop. Looks like Chrome is trying to protect from blowing up the console from errors within a loop?

Firefox just displayed one error. It seems they've found a more elegant way to report to the console.

I got this problem too, fixed it by switching to Chrome Canary

And here I thought Chrome Canary was the unstable build. ;-)

Quick fix; close and re-open your dev tools. That did it for me.

发布评论

评论列表(0)

  1. 暂无评论