Home > Enterprise >  Debug messages show blue in Chrome DevTools
Debug messages show blue in Chrome DevTools

Time:07-23

I'm making a game and I added some debugging messages with console.debug() but I noticed they were showing blue:

Screenshot

The code was the following:

console.debug('Reduced bounce on body because difficulty is on', difficulty);

I didn't add any styles to the message, it's something that Chrome did.

Chrome version 103.0.5060.114 (Official Build) (x86_64), on macOS

CodePudding user response:

The blue with a light blue "message count" badge is the default color or Chrome debug-level console message on MacOS in dark mode.

Some info about how to change the default for your own browser, or ways to write console messages in your own colors is in MacOS dark mode screenshot console

  • Related