It took a bit to find the best way to console log while running php in Valet. Here are a couple of techniques that helped me debug locally with PHP Laravel.
Following a process like the Scientific Method can help maintain your sanity during those seemingly hopeless searches for software bugs and broken code.
What "shape" is your project? It's not overall complexity that matters. It’s the ratio of complexity of functionality to visibility into that functionality.
My PC wouldn’t boot, didn’t even make a sound. I eventually traced the problem down to a particular mounting screw. But how did I figure it out? Debugging!
There's been a lot of effort to add ES6 compatibility to browsers (and Node.js). I'm going to use three Node debugging techniques modified to work with ES6.