4 ms·
Something useful about logging that maybe not everyone knows about: If you can't or don't want to pollute your code with `console.log` for debugging (can't edi
by jakub_g 5y ago
Something useful about logging that maybe not everyone knows about:
If you can't or don't want to pollute your code with `console.log` for debugging (can't edit original code; too long to rebuild; etc.):
You can add "log points" (Chrome and Firefox at least) directly in source view of devtools at specific lines of code
https://www.thedevelobear.com/post/logpoints/ https://www.thedevelobear.com/post/logpoints/
You can also use "conditional breakpoint" to do conditional logging with `console.log`, again, without leaving devtools.