ambush

This is a debug toolbox.


License
BSD-1-Clause
Install
pip install ambush==0.0.1

Documentation

ambush

This is a debug toolbox.

Features

Example:

Output:

Who is calling current function
=========================================================
In file:
/Users/kz2249/tmp/main.py

class Primary:
    # by caller function:
    def foo in line 6
        ...
        # actually call:
        m.bar() # in line 10
        ...

Peek:
---------------------------------------------------------
    def foo(self):
        a = 1
        a = a + 1
        m = Member()
        m.bar()
        a = a + 1
        a = a + 1

=========================================================