5 ms·
> print debugging is problematic since the developer has to be diligent about removing it once it is not longer needed. Linters make this a non-issue, and most
by ggorlen 2y ago
> print debugging is problematic since the developer has to be diligent about removing it once it is not longer needed.
Linters make this a non-issue, and most modern development environments support them.
https://eslint.org/docs/latest/rules/no-console https://eslint.org/docs/latest/rules/no-console
https://docs.astral.sh/ruff/rules/print/ https://docs.astral.sh/ruff/rules/print/
In situations where for whatever reason it's infeasible to use a linter, a basic grep can surface prints in a codebase reliably enough.