Wednesday, November 28, 2018

[Discuss-gnuradio] Fwd: How to debug gnuradio block in form of python code



---------- Forwarded message ---------
From: 鄭向林 <jhengshianglin@gmail.com>
Date: 2018年11月23日 週五 下午1:04
Subject: How to debug gnuradio block in form of python code
To: <discuss-gnuradio@gnu.org>


hello~ all
I am a beginner for gnuradio. Recently, I have been trying to run a demo of GRC and debug this demo. This demo called "gr-adsb" and it was written by python.
The structure of gr-adsb in gnuradio flows consist of the framer.py, demod.py and decoder.py 
The pictures are shown below
I have generated a python script code by gnuradio-companion and compiler with Pychram. The pictures are shown below


 I run this script in Pycharm and debug it. I set a breakpoint in "def work()" function of the framer.py to understand those variables in framer. The picture is shown below 


When I run in debug mode, the program didn't stop in this breakpoint. I don't know why. Could anyone plz tell me how to debug this GRC program?

 Thank you very much and look forward to your reply :)

kelvin

No comments:

Post a Comment