git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Debugging technique


This probably is not for you.  But PyCharm has a panel that shows a stack trace.

I created a video about debugging using the PyCharm debugger.  Here is a YouTube link:

https://www.youtube.com/watch?v=cxAOSQQwDJ4 <https://www.youtube.com/watch?v=cxAOSQQwDJ4>

Irv

> On Oct 2, 2020, at 11:51 PM, Frank Millman <frank at chagford.com> wrote:
> 
> Hi all
> 
> When debugging, I sometimes add a 'breakpoint()' to my code to examine various objects.
> 
> However, I often want to know how I got there, so I replace the 'breakpoint()' with a '1/0', to force a traceback at that point. Then I can rerun the previous step using the extra info from the traceback.
> 
> Is there a way to combine these into one step, so that, while in the debugger, I can find out how I got there?
> 
> Frank Millman
> 
> -- 
> https://mail.python.org/mailman/listinfo/python-list
>