discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: OOT C++ source code debugging


From: Marcin Puchlik
Subject: Re: OOT C++ source code debugging
Date: Wed, 16 Feb 2022 18:15:51 +0100

If you are planning to update the wiki soon, I will wait until it's finished.

śr., 16 lut 2022 o 18:14 Josh Morman <jmorman@gnuradio.org> napisał(a):
Yes - though VSCode has made a lot of progress, so some of the steps are not necessary.  I need to update the wiki here.

Namely, you don't have to run as sudo anymore, or give the user-data-directory on launch of code

On Wed, Feb 16, 2022 at 11:55 AM Marcin Puchlik <m.puchlik@is-wireless.com> wrote:
Hi Josh,
Thanks for the response. Are you talking about this guide: https://wiki.gnuradio.org/index.php?title=UsingVSCode

śr., 16 lut 2022 o 14:55 Josh Morman <jmorman@gnuradio.org> napisał(a):
Hi Marcin,

The directions for GDB debugging with Eclipse are fairly old (and I haven't used them myself).  Debugging an OOT using Visual Studio Code is fairly trivial however.

Josh

On Wed, Feb 16, 2022 at 8:19 AM Marcin Puchlik via GNU Radio, the Free & Open-Source Toolkit for Software Radio <discuss-gnuradio@gnu.org> wrote:
Hi Community,
I am following the tutorial on how to debug a custom OOT module [link]. Problem that I encounter is that the program doesn't stop at the breakpoints that I set in the work() function. Steps that I take are:

1. Run the QA python test
run_the_qa_test.png

2. Attach GDB to the running QA program
attach_to_the_process.png

4. After the attach (GDB brakes the running program)
after_attach_before_resume.png

4. After clicking RESUME (seems like it waits correctly)
after_resume.png

5. Then I press enter in the console
after_pressing_enter.png

And the program ends without stopping at the breakpoints. 
Do you know what could cause the problem? Or did I miss something?

Details:
  • GNU Radio - 3.8.4.0
  • Operating System details:
    • Distributor ID: Ubuntu
    • Description: Ubuntu 20.04.2 LTS
    • Release: 20.04
    • Codename: focal
  • Eclipse Version: 2021-12 (4.22.0)
  • GDB: GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 9.2
Thanks in advance

Marcin Puchlik



reply via email to

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