最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

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

matteradmin6PV0评论

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.

Post a comment

comment list (0)

  1. No comments so far