title: How to fix pdb in Aquamacs on Mac OS X?
body: <p>I'm developing a django app using aquamacs as my ide. Pdb isn't working since upgrading to emacs 23.2.1 using python 2.6.1. When I invoke pdb like this:</p>
  
  <pre><code>M-x pdb
  Run pdb (like this): pdb ./manage.py runserver
  </code></pre>
  
  <p>The gud-manage.py frame appears with this message (and nothing more) -</p>
  
  <pre><code>Current directory is /path/to/my/source/
  </code></pre>
  
  <p>It isn't responsive to keyboard input, though I can right-click and send a quit or kill signal. It seems like emacs isn't capturing the pdb output correctly.</p>
  
  <p>Has anyone seen this and (hopefully) fixed it? I believe it has something to do with the <a href="http://pswinkels.blogspot.com/2010/04/debugging-python-code-from-within-emacs.html" rel="nofollow noreferrer">gud-pdb-marker-regexp variable</a> (see point #2 in link).</p>
  
  <h3>Related issues</h3>
  
  <ol>
  <li><a href="https://bugs.launchpad.net/ubuntu/+source/emacs21/+bug/114933" rel="nofollow noreferrer">Seems to have been around since 2007</a> </li>
  <li>One person <a href="http://pswinkels.blogspot.com/2010/04/debugging-python-code-from-within-emacs.html" rel="nofollow noreferrer">a solution for this problem on Windows</a> (adding -u to the python command in the pdb script). I tried it anyway, but this didn't work for me.</li>
  </ol>