Files
ml_things/debugging
George Mihaila 28e923bb61 Update README.md
2020-07-25 11:36:48 -05:00
..
2020-07-25 11:36:48 -05: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