'DEPRECATED
Create a local debugger instance.
Parameters
colors : str, optional
The name of the color scheme to use, it must be one of IPython\'s
valid color schemes.  If not given, the function will default to
the current IPython scheme when running inside IPython, and to
\'NoColor\' otherwise.
Examples
from IPython.core.debugger import Tracer; debug_here = Tracer()
Later in your code::
debug_here()  # -> will open up the debugger at that point.
Once the debugger activates, you can use all of its regular commands to
step through code, set breakpoints, etc.  See the pdb documentation
from the Python standard library for usage details.'

@skip_doctest
def __init__(self, colors=None):

    warnings.warn('`Tracer`    is    deprecated    since    version    5.1,    directly    use    `IPython.core.debugger.Pdb.set_trace()`', DeprecationWarning, stacklevel=2)
    ip = get_ipython()
    if (ip is None):
        sys.excepthook = functools.partial(BdbQuit_excepthook, excepthook=sys.excepthook)
        def_colors = 'NoColor'
    else:
        def_colors = ip.colors
        ip.set_custom_exc((bdb.BdbQuit,), BdbQuit_IPython_excepthook)
    if (colors is None):
        colors = def_colors
    try:
        try:
            from reprlib import aRepr
        except ImportError:
            from repr import aRepr
        aRepr.maxstring = 80
    except:
        import traceback
        traceback.print_exc()
    self.debugger = Pdb(colors)
