ipython/ipython — pull request #2782 by ellbur (2013-01-13 18:01:39+00:00)
Title: Allow the %run magic with '-b' to specify a file.

Hello,

Here is a minor tweak to the %run command that some users might find helpful:

The syntax would be:

%run -d -b file2.py:30 file1.py

to break at line 30 of file2.py when running file1.py.

The old syntax

%run -d -b 20 file1.py

still works the way it used to.

Suggested by user gozzilli on StackOverflow
(http://stackoverflow.com/questions/14305203/ipython-set-a-breakpoint-in-imported-file/).