Debugging Python Code
People on my team asked me some time ago how I debug things in our python code base. So I thought I’d share here.
The easiest (and least efficient) way to debug is to use print
statements and
logging. But since you’re not using a real debugger, you need to update the
code and rerun in order to get new results.
Hence the most efficient way to debug things in python is to use a debugger. Don’t be scared, they are easy to master and they’ll serve you nicely for the rest of your life. They all are very similar.
…