Thanks, Josh.

  1.  I do build with debugging, and I also turn off optimizations.


  1.  I have installed, because when I try to run the flow graph (from the 
launch.json line that is, "args": 
["-u","/home/jeff/gr-jeff/examples/flowgraph_test.py"]), the flow graph will 
not start.  When I change the launch.json file to be, "args": 
["-u","/home/jeff/gr-jeff/python/qa_test.py"], it will also not launch without 
the files installed.  When the files are installed, the flow graph 
configuration breaks as expected, but the QA test runs to completion without 
breaking.


Jeff

From: Josh Morman <jmor...@gnuradio.org>
Sent: Tuesday, November 15, 2022 8:54 AM
To: Jeff S <e070...@hotmail.com>
Cc: discuss-gnuradio@gnu.org
Subject: Re: VS Code for QA Tests

Jeff,

1) Is the c++ code built with Debug symbols (CMAKE_BUILD_TYPE=Debug)
2) Have you installed your built files?  When running from python, VSCode uses 
the current PYTHONPATH in the environment and loads the .so files from there, 
not from the build directory

Josh

On Mon, Nov 14, 2022 at 8:29 PM Jeff S 
<e070...@hotmail.com<mailto:e070...@hotmail.com>> wrote:
I have been using VS Code for debugging code according to 
https://wiki.gnuradio.org/index.php/UsingVSCode.  I thought I would try doing 
the same thing but using the Python QA tests to start the code rather than the 
flow graph Python.  I can’t seem to get the C++ code to break when using the QA 
Test as starting point and just wondered if anyone could, and what the 
launch.json configuration was for doing that.  I’ve tried both launching from 
VS Code and attaching to a process with the same results.

I’m currently at GR v3.9.5.0 and VSC v1.73.

Regards,
Jeff

Reply via email to