title: IPython - set a breakpoint in imported file
body: <p>One can set a breakpoint in <code>IPython</code> + <code>pdb</code> like this:</p>
  
  <pre><code>run -d -b 150 file1.py 
  </code></pre>
  
  <p>That would break the execution of <code>file1.py</code> at line 150.
  Now, how can one set  a break point in a file that is being called by <code>file1.py</code>? Something like the following:</p>
  
  <pre><code>run -d -b file2.py:106 file1.py
  </code></pre>
  
  <p>where <code>file2.py</code> is imported and called inside <code>file1.py</code>.</p>
  
  <p>Many thanks.</p>