Skip to content

Instantly share code, notes, and snippets.

@dschien
Created August 18, 2016 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dschien/02dd6cc1faa76454b42196dd6e27613a to your computer and use it in GitHub Desktop.
Save dschien/02dd6cc1faa76454b42196dd6e27613a to your computer and use it in GitHub Desktop.
ipython notebook debugger example

add tracer anywhere

from IPython.core.debugger import Tracer
Tracer()()

set breakpoint

in tracer add module to sys path

sys.path.append('/Users/csxds/.virtualenvs/ipython/lib/python3.5/site-packages/excel_helper')
from excel_helper import helper
b helper:561

Check out the cheat sheet [https://github.com/nblock/pdb-cheatsheet/blob/master/pdb-cheatsheet.pdf]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment