Menu

Boa does not capture stderr/tb in debugger

2003-09-17
2003-09-19
  • Keith Davidson

    Keith Davidson - 2003-09-17

    Running the short script below in the debugger under 0.2.3 only captures "hello to stdout" in the output pane.  The traceback is lost (except for the yellow exit status in the debugger pane) and the stderr output is nowhere to be seen.  When debugging unittest.py based test drivers this effectively swallows all output ;-)

    import sys

    sys.stdout.write ('hello to stdout')
    sys.stderr.write ('hello to stderr')

    raise NotImplementedError

     
    • Riaan Booysen

      Riaan Booysen - 2003-09-18

      Hi Keith,

      I noticed this earlier as well, thanks for prodding me to action ;)

      Now fixed in my copy.

      In Debugger.ChildProcessClient.ChildProcessClient.pollStreams, change:

               stream = self.error_stream
      -        if stream is not None and not canReadStream(stream):
      +        if stream is not None and canReadStream(stream):
                   stderr_text = stream.read()

      Thanks for the debugger feedback!

      PS. Please add such items as bug reports in future.

      Cheers,
      Riaan.

       
    • Keith Davidson

      Keith Davidson - 2003-09-19

      Riaan, that fixed it- thanks!

      BTW, I am really impressed with Boa Constructor... I know I'm probably pushing it trying to use it to debug python apps that use C extensions compiled in debug mode (thus needing to use python_d.exe) but Boa's benefits are so great that I'm determined to get it all working ;-)

      My ability to get into the boa source and find/debug some of this so easily is a testament to the fine job you've done writing it!

      I'll be posting some additional issues/bugs to the bug tracker, any short term fixes like the one you gave me here are appreciated.

      thx,
      Keith

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.