python2-trepan is a slightly more advanced debugger that allows you to "step into" functions but it's not super well documented
-
-
But yeah, debugger's like that in python aren't as good as they are in lot's of other languages.
2 replies 0 retweets 2 likes -
If you keep your functions small (you should be able to describe exactly what a function does without using the word "and") then usually /1
2 replies 0 retweets 1 like -
it's easier to find out where the problem is. Also I like to give almost all of my funcs a "verbose mode" that I can turn on when dbgging /2
2 replies 0 retweets 2 likes -
Replying to @alex__morley @o_guest
I started doing that too, and it helps a lot. Do you just set a global verbose=True/False and then a conditional in each function or?
1 reply 0 retweets 1 like -
I usually have it as a (kw)arg. But I think having a global for it is OK (seem's like a relatively legit use for globals...).
1 reply 0 retweets 2 likes -
Replying to @alex__morley @venpopov
Ehh, ideally (?) you can pass it around. Like every object/function has a verbose optional argument.
1 reply 0 retweets 2 likes -
Yeah, that's what I meant. I guess if I was writing for someone else / for a project I would use the proper Logging(.info .debug) stuff.
2 replies 0 retweets 1 like -
Replying to @alex__morley @venpopov
Yeah, agreed. I really enjoyed adding continuous integration recently. Doing stuff properly gets me excited! LOL
1 reply 0 retweets 1 like -
Nice! When you create packages using the julia pkg manager it sets up all the travis stuff for you so I use it a lot for julia projects
1 reply 0 retweets 1 like
Beautiful! Haven't used Julia yet.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.