Re: Is there a log file that tracks every statement that is being executed when a program is running?

2020-10-25 Thread Mladen Gogala via Python-list
On Sun, 25 Oct 2020 12:14:52 +0100, Maxime S wrote: > Hi, > > You can use the trace module for that: > https://docs.python.org/3.8/library/trace.html > > Personally I tend to put print statement at strategic places instead, I > find that easier to analyse than a full trace but YMMV. > > Maxime

RE: Is there a log file that tracks every statement that is being executed when a program is running?

2020-10-25 Thread Steve
. FootNote: If money does not grow on trees, then why do banks have branches? From: Maxime S Sent: Sunday, October 25, 2020 7:15 AM To: Steve Cc: Python Subject: Re: Is there a log file that tracks every statement that is being executed when a program is running? Hi, You can use

Re: Is there a log file that tracks every statement that is being executed when a program is running?

2020-10-25 Thread Maxime S
Hi, You can use the trace module for that: https://docs.python.org/3.8/library/trace.html Personally I tend to put print statement at strategic places instead, I find that easier to analyse than a full trace but YMMV. Maxime Le dim. 25 oct. 2020 à 01:25, Steve a écrit : > This would seriousl

Re: Is there a log file that tracks every statement that is being executed when a program is running?

2020-10-24 Thread MRAB
On 2020-10-25 00:21, Steve wrote: This would seriously help troubleshooting for me. I updated a data file and now my main program is choking on it. When the program encounters an error, it dumps a bit of information to the screen for a few steps before the error but that is not enough. You cou