|
|
|
|
|
by alixander
4182 days ago
|
|
I wish I could give you pros and cons, but I've never touched pdb or used a python IDE before myself. In my 3 years of programming, I've only used print statements to debug (for Python programs). I'll be adding more documentation soon, but perhaps this is a more informative use case: Too often in my Python programs, I'll do something like,
print("x is: " + str(x)).
That's already too much to keep typing, but sometimes I'll want to know the type, or maybe it's a dictionary and printing without separators makes them blend together (say, in a for loop). In that case, I'll do:
print("---------\nx is: " + str(x) + "\n") The library allows this to be simplified to "ps.d(x)". It's rather opinionated towards my own workflow and what I was too lazy to keep doing. Perhaps I'll try pdb one day and find my library useless. |
|