[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Debugging New Gnuradio blocks
From: |
Martin Braun (CEL) |
Subject: |
Re: [Discuss-gnuradio] Debugging New Gnuradio blocks |
Date: |
Tue, 29 Oct 2013 10:15:54 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
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
--
Karlsruhe Institute of Technology (KIT)
Communications Engineering Lab (CEL)
Dipl.-Ing. Martin Braun
Research Associate
Kaiserstraße 12
Building 05.01
76131 Karlsruhe
Phone: +49 721 608-43790
Fax: +49 721 608-46071
www.cel.kit.edu
KIT -- University of the State of Baden-Württemberg and
National Laboratory of the Helmholtz Association
pgpfZRXNeI5Pj.pgp
Description: PGP signature