Reputation: 1215
My latest python debugging workflow appears extremely slow to me, and little satifying. How can I improve?
Setting: I work with some third-party python packages from github.
Workflow:
import pdb
to the module, and a pdb.set_trace()
before that function callimport pdb
and the pdb.set_trace
Thanks for any suggestions
Upvotes: 0
Views: 197
Reputation: 1360
are you using an IDE, not fully clear in your question?
they tend to have graphic ways of setting breakpoints and stepping, and it saves the hassle of changing the source.
not going into ide opinions, but examples of ide's with debuggers are spyder, thonny and others.
you can also run the debugger via commandline to avoid changing source, but I don't think that's the way to go if you are looking to simplify the cognotive load.
Upvotes: 1
Reputation: 125
Yes these things you have to do and in extra you can do include logging everywhere as applicable to get exact point where it got occurred.
Upvotes: 0