Getting Started with Thonny

97 views
Skip to first unread message

Jonn Doe

unread,
Apr 22, 2024, 1:37:14 PM4/22/24
to thonny

I really have a phobia with python ide's and especially debuggers. So, I've had to debug my code by hand and littery put millions (slight exag...) of print calls in. Its getting annoying.

So, whats a good upto date current guide that will let me understand how to load large project split over 12 .py files and just run and debug it quickly doing a breakpoint in one opf the .py files.

Have questions like how do you designate an individual .py file as the entry point to the project and how you you breakpoint a seperate .py file?

I have used ide/debuggers before but just found python ones clunky. Any ideas of a good current guide would help.

Many thanks

Paul Naish

unread,
Apr 22, 2024, 3:01:09 PM4/22/24
to tho...@googlegroups.com
On 2024-04-22 1:31 p.m., Jonn Doe wrote:
So, whats a good upto date current guide that will let me understand how to load large project split over 12 .py files and just run and debug it quickly doing a breakpoint in one opf the .py files.

My experience with Thonny is that is 'file' and not 'project' focused. For 'projected' focused IDE's you may want to look at PyCharm or VS. This is not to knock Thonny, which is my Python IDE for all my work, from Raspberry PICO's to the bigger PI's, but I also recognize the special needs for 'projects'.

Jonn Doe

unread,
Apr 22, 2024, 3:20:39 PM4/22/24
to thonny

Hmm, project to me is just a home code project (not a business project i.e multiple programmers etc) made up of 12 .py files about 8 classes the main entry point code just loads everything in uses argparse to see what the command/function to run and call either a class method or a function. It's just debugging this sprawling code is leading to massive headaches.

I've just never used a debgguer or IDE with python as said before. Just looking for a really good guide.

Paul Naish

unread,
Apr 22, 2024, 6:00:18 PM4/22/24
to tho...@googlegroups.com
It is likely I envisioned your 12 PY's as one or more separate main scripts.

In Thonny, if you load all 12 PY's that are imported into the main program, you can set debugger break points in each of the separate scripts and the debugger will break at that point and set focus to that script. Hope that's what you are asking.
--
You received this message because you are subscribed to the Google Groups "thonny" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thonny+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/thonny/42e89a60-172a-435b-b951-107f42710098n%40googlegroups.com.


Reply all
Reply to author
Forward
0 new messages