mirror of
https://github.com/gmihaila/ml_things.git
synced 2021-10-04 01:29:04 +03:00
Python Debugging tool
To set debugging:
import pdb; pdb.set_trace() #<---------DEBUGGING---------------
For example:
def add(a, b):
'''
This is the test:
>>> add(2, 2)
5
'''
import pdb; pdb.set_trace() #<---------DEBUGGING---------------
return a + b