On Tue, Oct 29, 2013 at 5:15 AM, Martin Braun (CEL) <martin.br...@kit.edu> wrote: > On Tue, Oct 29, 2013 at 02:20:47AM -0400, Tommy Tracy II wrote: >> I’m finding it particularly challenging to debug new gnu radio blocks. If I >> have a printf() in my work() function, the output is not written to std out; >> is >> it redirected elsewhere? What other methods are you using for debugging gnu >> radio blocks? > > Tommy, > > you might need to flush the output to directly see stuff. > If you use std::cout and std::endl, that happens automatically. > > Also, are you debugging through unit tests? Are you doing ctest -V? > > We have this tutorial: > http://gnuradio.org/redmine/projects/gnuradio/wiki/TutorialsDebugging > > ...but I admit it could be a bit longer. Perhaps you can add to this > page once you've figured out your problem? > > Thanks, > MB
Also, check out the new logging infrastructure: http://gnuradio.org/doc/doxygen/page_logger.html Tom _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio