Is it just that linting is a type/subset of debugging? Like, linting will analyze static code syntax but debugging uses a variety of techniques to fix code in a variety of ways? Or is it more complicated than that?
1 Answer
Linting can prevent debugging by catching bugs before you manually run your program. It will run the code and check for errors. Debugging is something you manually do after a bug is found.
-
2I don't think linting will actually 'run' the code. Some static analysis tools will effectively run the code (via interpretation or some other sandbox), but lint, in the original sense is really just a really picky compiler with all the warnings turned on and a few extra checks.– NeilCommented Jan 31, 2018 at 20:22