Question

i am debugging c++ with eclipse on a linux VM. The eclipse I am using is Kepler Service Release 1. I compile the files using Automake. When I try to debug in Eclipse and do stepover it sometimes jump to backward lines, sometimes it goes into the line. Also when there is a problem it just shows nothing. When I try to see variables it doesn't always succeed. It seems the Eclipse behavior is not so good. I come from Windows programming and it looks very much like I saw when we compiled release version and tried to debug it in Visual. Can anyone plesae assist? I can't debug like this. Is there any configuration? something I do wrong? Thanks

Était-ce utile?

La solution

As Martin James stated all I needed was to turn off all optimizations. I had -o2 flag and needed to remove it.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top