title: running script stop in the middle
body: <p>I have a script doing some computation and save some invisible plots into image files inside a for-loop on a linux server.</p>
  
  <p>When I run the script, it usually get stuck in somewhere in the middle. I am not sure where exactly it stopped, but I can know at which iteration of the for-loop it stops by print-out. if I rerun it from the iteration where it stopped, it could continue to run past that place. So it seems to me there is no bug.</p>
  
  <p>I just wonder how I can identify at which line it stops?</p>
  
  <p>what might be the cause of the problem and how I can run the whole script from the beginning till the end?</p>
  
  <p>Thanks!</p>
  
  <hr>
  
  <p>UPDATE:</p>
  
  <p>I use dbstop</p>
  
  <pre><code>dbstop if error  
  dbstop if warning  
  run path2script
  </code></pre>
  
  <p>The running still gets stuck somewhre and no message is given regarding why.</p>