title: Debugging a pyQT4 app?
body: <p>I have a fairly simple app built with pyqt4. I wanted to debug one of the functions connected to one of the buttons in my app. However, when I do the following</p>
  
  <pre><code>python -m pdb app.pyw
  &gt; break app.pyw:55  # This is where the signal handling function starts.
  </code></pre>
  
  <p>things don't quite work like I'd hope. Instead of breaking in the function where I've set the breakpoint and letting me step through it, the debugger enters an infinite loop printing out <code>QCoreApplication::exec: The event loop is already running</code> and I am unable to input anything. Is there a better way to do this?</p>