Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ptp-user] SDM with Python?

I have a programming project that uses GNURadio and I would like to use the Eclipse integrated debugger on it.  The GNURadio framework is built using two languages: Python/C++.  I have been able to do this by running Eclipse locally on the development machine, but not remotely.  Roughly 90% of the project that I recently joined is written in C++ and about 10% is in Python.  To execute my application, I run a python script that imports my C++ shared libraries.  The C++ shared libraries during compiling use SWIG to help with the import process (SWIG helps with things like converting data types between the two languages).

When using the Eclipse integrated debugger on the local machine, I use PyDev to start the python script with a breakpoint.  With the process paused, I attach to the running process.  I can set a breakpoint in the C++ code and then release the Python breakpoint.  Although not very slick, this allows me to step around in Python and C++.

I'm looking into using Eclipse from a remote machine.  If this wasn't complicated enough, I was hoping to go use Eclipse on Windows and execute the code on Linux.  I hear I may be able to use gdbserver and a SED hack to get the file paths between the two OS's to work out.

But I was hoping I could use PTP and SDM as the file paths part seems to be solved here.

So my questions are:
1) Can I use SDM to attach to a remote process?
2) Can I conveniently launch a remote Python process from Eclipse and have it attach to that process (perhaps even paused at the very beginning)?

If not, I am interested in helping out with the development effort for this if needed.

Thanks,

Derek

Back to the top