Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

not a typescript dev here: what do you use instead of console.log for debugging?


It sounds like they use console.log, but they don't let it ship in their production code.


console.log is reserved for devtime debugging and is a linting error so it cannot be left in. console.info is used in the occasional time we actually want to write things to console (along with console.warn, console.error, console.group, console.table, etc.).

It's all it took. Just making a clear distinction between the two and communicating it with the team.


I liked tslog last time I tried it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: