mauroc / squiddio_pi

squiddio_pi
3 stars 13 forks source link

Eclipse Debug broken #78

Closed mauroc closed 4 years ago

mauroc commented 4 years ago

for years I have been using Eclipse IDE (Version: 2019-03 (4.11.0)) running on Ubuntu (v 18.04) to debug squiddio_pi.

I noticed the other day that Debug was skipping all breakpoints I add in the squiddio_pi code (while it executed correctly the ones in the opencpn code).

I restored a commit I made on 10/17 (b82d6d9ba4c0f59cd19a9389cfb590b7f93d41ae) and that one worked correctly.

I traced down a the potential offending commit to this one on 10/17: https://github.com/mauroc/squiddio_pi/commit/e7876fc0f74b3ad225e1d04c69d28f5a748c5ebe

particularly this change made to CmakeFileslist.txt

image

Apparently, eclipse (or gdb, which I understan eclipse uses as debugger) uses that information to derive the location of the squiddio_pi project name, and therefore code.

Does this make sense to anyone? Anyone had a similar problem? I suppose there must be other coders out there using eclipse? Can that line just be restored?

I am not a huge C++ guy (my background is mostly Ruby backend stuff) , so I am kind of pulling at straws here.... Eclipse has always worked great for me....

mauroc commented 4 years ago

ignore this for now. Need to do more research

rgleason commented 4 years ago

You are not alone. Search on eclipse fails with legacy gdb

https://www.eclipse.org/forums/index.php/t/1076100/

https://forums.intel.com/s/question/0D50P0000490V3XSAU/eclipse-fails-to-lanunch-gdb?language=en_US I couldn't get it working until I modified the Debug Configuration in Eclipse to explicitly point to the i586-poky-linux-gdb debugger. Hope that helps, ---Did the trick

https://www.eclipse.org/forums/index.php/t/164529/ Yeah, I can confirm this. It depends on the position of the project's directory in the filesystem, probably on the lenght of the path to it. I just filled a bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=311807 with reference to your post here David

https://www.eclipse.org/lists/cdt-dev/msg13802.html

RE Cgwin and restarting Eclipse I hadn't restarted Eclipse since adding the cygwin path as an environment. I did so and tried again and SUCCESS: a day after I began I finally got Eclipse to debug with the Cygwin toolchain. https://www.eclipse.org/lists/cdt-dev/msg13802.html

Cant run Debug operations https://www.eclipse.org/forums/index.php/t/158165/