discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Debugging New Gnuradio blocks


From: Tom Rondeau
Subject: Re: [Discuss-gnuradio] Debugging New Gnuradio blocks
Date: Tue, 29 Oct 2013 09:47:37 -0400

On Tue, Oct 29, 2013 at 5:15 AM, Martin Braun (CEL)
<address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]