Embedded python: How to debug code in an isolated way
Eko palypse
ekopalypse at gmail.com
Sat Aug 22 17:20:19 EDT 2020
Thx for your tip/suggestion.
> If In Doubt, Print It Out!
That's the current situation and that's usually enough, but then there's
this situation
where it gets annoying because you realize that the print wouldn't make
more sense at this point
but at that point and that's where a debugger is just nicer, I think.
Eren
Am Sa., 22. Aug. 2020 um 22:59 Uhr schrieb Chris Angelico <rosuav at gmail.com
>:
> On Sun, Aug 23, 2020 at 5:51 AM Eko palypse <ekopalypse at gmail.com> wrote:
> > So the question is, what do I need to read/learn/understand in order to
> solve this issue?
> > Or in other words, how can I debug my script in an isolated environment.
>
> I'd go for the old standby - IIDPIO: If In Doubt, Print It Out!
> Instead of trying to use a debug harness, just run your code normally,
> and print out whatever you think might be of interest. If you don't
> have a console, well, that would be the first thing to do - you
> *always* need a console.
>
> ChrisA
> --
> https://mail.python.org/mailman/listinfo/python-list
>
More information about the Python-list
mailing list