title: debugging with try and catch statements in MATLAB
body: <p>I have a try/catch statement in a MATLAB file that calls a bunch of nested functions. Simply, the try/catch is running at the 'top' level, iterating about a filelist for which I call functions on.</p>
  
  <pre><code>for i=1:length(FILELIST)
  try
  dosomething(FILELIST(i)
  catch
  disp(exception.message)
  rethrow(exception)
  end
  </code></pre>
  
  <p>My question is, say dosomething() has many subfunctions dosomethingchild() how can I access the debug workspace of that? I would have to remove the try/catch statements in all parents in order to access the debug workspace with 'STop if errors/warnings' set to full.</p>
  
  <p>try/catch is making it harder to debug, but I want to keep it because sometimes the code will fail on some files because of the nature of the files...not the code itself.</p>
  
  <p>Thanks in advance.</p>