How do you debug in Python? Coming from a Matlab and R user. I'm already aware of pdb.

Irv Kalb Irv at furrypants.com
Wed Jan 27 17:21:36 EST 2021


On Jan 26, 2021, at 5:28 PM, William Ray Wing via Python-list <python-list at python.org> wrote:
> 
> 
> 
>> 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.
> 
> 

I'm happy with the PyCharm IDE.  I created a video showing how to use the debugger in that environment.  It's available on YouTube here:

https://www.youtube.com/watch?v=cxAOSQQwDJ4 <mailto:python-list at python.org>

Irv



More information about the Python-list mailing list