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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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.
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