Added debugging.

Successfully captures qt output, stdout, and stderr.