Invoke the Python Debugger in One Line June 23, 2014 by Mike Leave a Comment Add the following snippet where you want to invoke the Python debugger: import pdb;pdb.set_trace()