discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Debug Question


From: Marcus Müller
Subject: Re: [Discuss-gnuradio] Debug Question
Date: Tue, 21 Jul 2015 21:07:15 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0

Hi Rich
Best approach is very probable running your flow graph in gdb and specifying a break point:

gdb --args python /path/to/flow_graph.py
...
>break source_code.cc:121
blablabla not loaded, do you want to add it as soon as blabla? Y
>run

if you really want to enforce this in the source code itself:

#include <csignal>
...

std::raise(std::SIGINT); // not quite sure which namespace raise and SIGINT end up in; try without std:: on either

Best regards,
Marcus


On 21.07.2015 20:50, Richard Bell wrote:
I'm looking for a way to stop my flowgraph through a C++ command just so I can see a few std::cout debug statements without freezing my console due to massive std::couts.

Is there a way of doing this?

Rich


_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


reply via email to

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