to demonstrate debugging on exception

def func2(q1, q2):
    """
    to demonstrate debugging on exception
    """

    a = q1/q2
    
    if q2 == 5:
        z = 100
        IPS() # start embedded ipython shell in the local scope
        # -> explore global namespace

    
    return a