|Fairly new to Eclipse. How do I run code that is stored in a docker? [message #1839038]
||Thu, 11 March 2021 16:18
| Dylan Abrahamsen
Registered: March 2021
Hi everyone! |
I'm fairly new to eclipse and I've been trying to figure my issue out for some time (reading online instructions, videos, etc.), but haven't been able to resolve it. The issue is that there is some C++ code I need to debug, but it is only stored in a docker container. The container is running centOS 6.9 and needs to stay that way since I've been told the code will not function otherwise (it was written starting in the 80's). I have the image and can create a container and run the code via the terminal with the C++ exectuable (with some commands to pass). I can debug using gdb, but there are things gbd can't display correctly and the code is massive.
The first thing I tried has to install eclipse on the container, but centOS 6.9 would need a legacy Eclipse I believe. The next thing was to use the Docker Tooling. I can see the container in Eclipse this way. Every tutorial I see seems to try and solve running local files on the container, but I need to debug the files that only exist on the container.
Right now I'm using RSE to remote into the docker via the IP address and can see the source code, but can't figure out how to debug from here either. Again, everything I've read seems to pass local files to the remote host.
I would really appreciate a step-by-step guide on anyway to debug code that is only present on the docker. Thank you!
Powered by FUDForum
. Page generated in 0.03641 seconds