4 ms·
not a typescript dev here: what do you use instead of console.log for debugging?
by orliesaurus 2y ago
not a typescript dev here: what do you use instead of console.log for debugging?
- darknavi 2y agoIt sounds like they use console.log, but they don't let it ship in their production code.
- electromech 2y agoI liked tslog last time I tried it.
- Waterluvian 2y agoconsole.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.