lundi 1 août 2016

How to debug a python function in ipython?

I have a python function, for example:

def fun():    
    a = 1.0
    b = a*2+1
    return b

But I want to debug it in ipython, so I want to watch all the variable a and b, like a global variable, how can I do this?

Aucun commentaire:

Enregistrer un commentaire