title: BdbQuit raised when debugging Python with pdb
body: <p>Recently when adding the <code>pdb</code> debugger to my Python 2.7.10 code, I get this message:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;/Users/isaachess/Programming/vivint/Platform/MessageProcessing/vivint_cloud/queues/connectors/amqplib_connector.py&quot;, line 191, in acking_callback
      callback(message.body)
    File &quot;/Users/isaachess/Programming/vivint/Platform/MessageProcessing/vivint_cloud/queues/consumable_message_queue.py&quot;, line 32, in deserialized_callback
      self._callback_method(msg)
    File &quot;/Users/isaachess/Programming/vivint/Platform/BusinessLogic/businesslogic/util/statsd_util.py&quot;, line 95, in _time_func
      retVal = f(*args, **kwargs)
    File &quot;/Users/isaachess/Programming/vivint/Platform/MessageProcessing/vivint_cloud/net/router.py&quot;, line 226, in handle
      try:
    File &quot;/Users/isaachess/Programming/vivint/Platform/MessageProcessing/vivint_cloud/net/router.py&quot;, line 226, in handle
      try:
    File &quot;/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/bdb.py&quot;, line 49, in trace_dispatch
      return self.dispatch_line(frame)
    File &quot;/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/bdb.py&quot;, line 68, in dispatch_line
      if self.quitting: raise BdbQuit
  BdbQuit
  </code></pre>
  <p>This is after inserting the line:</p>
  <p><code>import pdb; pdb.set_trace()</code></p>
  <p>in the code.</p>
  <p>I cannot figure out why this is happening. I've read up on Bdb and Bdbquit, but cannot figure out why this is happening in my code. Can anyone provide me with some hints of why this happens in general? I <em>really</em> want to get the debugger working again.</p>