Re:You say “cave dweller debugging”, I say debug logging
by supermatt on Friday May 06, 2022 @11:15AM
(#31286145)
Python, AFAIK, doesnt have a 'debug' mode, so its likely the IDE that is slowing down your debugging experience. Im not sure how you work around that - some IDEs do a lot of superfluous stuff when 'debugging', and may have settings to toggle features.
You can also just import the debugger where you need to use it, in which case you shouldn't get any slowdown.
For some operations, running them in debug mode means they are 10 times slower, turning a 30sec operation (such as parsing big files into memory) into 5 minutes. If I'm relatively certain of what the problem is and I solve it in less than ~5 tries, I saved time.