Fleming, Matthew
2009-02-15 14:51:57 UTC
Folks,
Sorry if the following problem has an obvious solution. I am relatively new to Eclipse.
I am using Eclipse Ganymede and the CDT. My problem is that debugging doesn't seem to work for a class file. If I set a breakpoint or do "run to line" in the source file containing the main routine, it works. If I set a breakpoint in a file containing source for a class (which is called by the main function), the debugger doesn't stop. Similarly, "run to line" doesn't work for a line in the class file and, if the program crashes in the class file, all I get is "program exited normally".
I running Ubuntu Linux. Initially gdb 6.6 was installed but I replaced this with 6.8, without any improvement. I've tried gdb/mi and gdb debuggers. With the former, verbose terminal mode shows that breakpoints in the classfile are not triggered. I've confirmed that the object for the class file is being built with debugging symbols (same compiler switches as for the main file).
Possibly this problem is the result of some simple misconfiguration, but I haven't found any mention of it, and the behavior is contrary to what I would expect from other IDE's I've used. Would really appreciate a solution. Thanks very much in advance.
Matthew Fleming
mfleming at at at at mcw.edu
Sorry if the following problem has an obvious solution. I am relatively new to Eclipse.
I am using Eclipse Ganymede and the CDT. My problem is that debugging doesn't seem to work for a class file. If I set a breakpoint or do "run to line" in the source file containing the main routine, it works. If I set a breakpoint in a file containing source for a class (which is called by the main function), the debugger doesn't stop. Similarly, "run to line" doesn't work for a line in the class file and, if the program crashes in the class file, all I get is "program exited normally".
I running Ubuntu Linux. Initially gdb 6.6 was installed but I replaced this with 6.8, without any improvement. I've tried gdb/mi and gdb debuggers. With the former, verbose terminal mode shows that breakpoints in the classfile are not triggered. I've confirmed that the object for the class file is being built with debugging symbols (same compiler switches as for the main file).
Possibly this problem is the result of some simple misconfiguration, but I haven't found any mention of it, and the behavior is contrary to what I would expect from other IDE's I've used. Would really appreciate a solution. Thanks very much in advance.
Matthew Fleming
mfleming at at at at mcw.edu