How do you debug in Python? Coming from a Matlab and R user. I'm already aware of pdb.
William Ray Wing
wrw at mac.com
Tue Jan 26 20:28:31 EST 2021
> On Jan 26, 2021, at 2:00 PM, C W <tmrsg11 at gmail.com> wrote:
>
> Hello everyone,
>
> I'm a long time Matlab and R user working on data science. How do you
> troubleshooting/debugging in Python?
>
Another approach is to run the code in an IDE. I happen to use Wing, but that is a coincidence. But almost ANY IDE will let you set a break point, then single-step through your code starting at the break point and examine the values of your variables at each step. Sometimes this is an awfully big hammer for what is a head-slapping mistake. But it has never failed me.
Good luck,
Bill
More information about the Python-list
mailing list