3 ms·
Oh hey man, surprised to see a Merveilles link on HN haha :) Debug by print/console.log is fine -- sometimes it's the fastest/easiest way to quickly troublesho
by amatecha 6y ago
Oh hey man, surprised to see a Merveilles link on HN haha :)
Debug by print/console.log is fine -- sometimes it's the fastest/easiest way to quickly troubleshoot a fairly complex flow, etc.
I've worked on mobile web apps where we had no debugging tools (back in the early days) perhaps due to lack of full access to the hardware, etc. So we would do things like set a background color based on a certain value, add borders, change font color, stuff like that. Or just draw debug console text on top of everything.
Sometimes the actual debugger for the provided software/platform is of low quality too.
Conversely, being able to set conditional breakpoints is pretty powerful and I miss doing so when it's not possible!