The easiest way to make debugging JS in your browser super smooth and easy on the eyes.
This is something I didn’t know about for a long time, actually. If you’re reading this, you probably don’t know about it yet. Or maybe you’re just looking for a refresher.
You’ve been at it all day. You have 3 different browsers open. You’re hunting some bug — it doesn’t matter what the bug is, all that matters is the sheer amount of
console.log() output that is going on.
Every time the page goes through a render loop in whatever framework you’re working with, 20 lines pop up in the console. You have to continually parse through all of them to find the line you’re interested in. One of them is related to variableX, one is related to variableY, one is displaying the results of apiCallA, one is displaying the results of apiCallB, and 16 of them are from someone else’s ugly mess.
You get the picture. Your eyes are tired. Your brain is fried. Wouldn’t it be nice if you could format these in a way that your eyes could easily scan? It’s all just blending into itself now, and you keep reading the wrong value on each render, and you’re having to go back and forth between your monitors and different browsers and…
Perhaps you’d like all of your local state variables to be displayed in lime green, just so they pop out at you from in between all the other black text. Or maybe you’d like the console output to be in bold red when something is
You don’t even really care at this point. Anything is better than nothing.
Well, here’s how you do just that. And it’s definitely better than nothing — it’s how to apply any CSS to your console output.
In this post, we'll learn top 30 Python Tips and Tricks for Beginners
Want to develop a website or re-design using CSS Development? We build a website and we implemented CSS successfully if you are planning to **[Hire CSS Developer](https://hourlydeveloper.io/hire-dedicated-css-developer/ "Hire CSS Developer")**...