5 ms·
Show HN: Screenlog.js – use console.log without opening the console
- onion2k 11y agoNice project. I wrote something very similar little while ago so I could see console messages on mobile devices where proper debugging with ADB or Safari isn't an option - https://github.com/onion2k/console.js https://github.com/onion2k/console.js - my version hijacks console.[log|info|warn|error] rather than just log. That said though, if you have the option then the bookmarklet version of Firebug Lite is much nicer: https://getfirebug.com/firebuglite https://getfirebug.com/firebuglite
- alxeder 11y agoI looks interesting. You should think about also adding distribution via bower, since its an frontend orientated library.
- chinchang 11y agoSure. I'll add it there too.
- sabeur 11y agoWill be using it on my next project.
- voltagex_ 11y agoShould be helpful for debugging the Xbox One Edge browser with Vorlon.js.
- kristiandupont 11y ago>Ever faced a situation where you said "Why doesn't this bug show up when developer console is open!!"? And since the bug doesn't show when you have console open, you cannot do debug logging using console.log. Not since IE8, really. Is this a thing? Still a nice project though.
- cjfont 11y agoEven then, wasn't it usually the opposite case, where you would get the "console undefined" error when the developer console was closed? I can't think of a single case where an error only occurs (or is observed) when the console is closed. Having said that, this project definitely still has its practical uses.
- chinchang 11y agoYes. Atleast I have seen this a lot with me and my colleagues. console.log brings in lot of additional monitoring, time lag etc which can affect debugging.