On Wed, Apr 24, 2013 at 2:48 AM, Johannes Demel <uf...@student.kit.edu>wrote:


> I just want to point out that you could use gdb python for debugging.
>
> just run gdb python and then "run path/file.py". At least it works for
> me and doesn't need this import os stuff and looking up PIDs.
>

This works in most cases (and is how I usually debug GNU Radio apps written
in Python.)

However, in the case of the QA code, the 'make test' command executes the
Python script with a very specific set of environment variables to allow
the QA code to find GNU Radio as part of the build tree, not the system
installation, so the technique Tom outlined is needed to attach gdb after
all that takes place.

-- 
Johnathan Corgan
Corgan Labs - SDR Training and Development Services
http://corganlabs.com
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to