title: Save breakpoints to file
body: <p>When debugging my Python code, I run a script through ipdb from the commandline, and set a number of breakpoints. Then I make some changes in one or more modules, and rerun. However, if I simply use run modules <a href="https://stackoverflow.com/q/28841411/974555">do not get reloaded</a>.  To make sure they do, I can exist and restart Python completely, but then I need to reset all breakpoints, which is tedious if I have many and if done over and over again.</p>
  
  <p>Is there a way to save breakpoint to a file in (i)pdb, so that after small changes that do not change line numbers, I can dump my breakpoints, restart Python + pdb, and reload my breakpoints?  The equivalent to Matlabs <code>X = dbstatus</code>, saving/loading <code>X</code>, and setting <code>dbstop(X)</code>.</p>