Hello i'm trying to get stdout from python debugger pdb.


Qt Code:
  1. connect(&process,SIGNAL(readyReadStandardOutput()),this,SLOT(printOutput()));
  2. process.start("python /usr/bin/pdb tmp.py")
To copy to clipboard, switch view to plain text mode 

but unfortunaly i have no output in this case, but if i trying to do:
Qt Code:
  1. process.start("python /usr/bin/pdb --help")
To copy to clipboard, switch view to plain text mode 

stdout catched perfectly. How can i catch stdout from app like pdb (or gdb)?