Re: Problem: execution doesn;t come to the breakpoint
Knox Long <[email protected]>
| Newsgroups | gmane.comp.debugging.ddd.general |
|---|---|
| Message-ID | <[email protected]> |
I have had similar annoying problems in the past, and never fully been able to determine their cause. Generally, my workaround has been to trying startding ddd in the directory with the source files, and so the problem is clearly associated with search paths. But it would be nice if this were fixed. The other problem I see commonly is that the program stops but the cursor is not at the breakpoint but somewhere considerably higher up in the code. next usually brings the cursor where it ought to be. Knox Long Peter Wainwright wrote: > On Fri, 2008-08-29 at 16:49 +0530, Nilanka Rajapaksha wrote: > >> Hi, >> >> Please someone help me with this as I'm a newbie to this debugger. >> When I debug the project the execution doesn't come to my breakpoint >> which I'm sure the execution should come. >> >> The project has a lot of files in different directories. I checked the >> *.o file is also created to the file. I added the breakpoint after >> opening the file using "open source" command. and when I press the edit >> button it opens a empty vi window in the wrong location which is the >> location that I run the debugger. >> >> 1) can the ddd debugger debug project with sources in different >> directories? >> > > It is supposed to work. I'm not sure how it determines the absolute > path to the source file and why it sometimes does not do this. If you > look in the window title bar, sometimes you see an absolute and > sometimes a relative path. If you try to Edit Source when you have a > relative path name in the source window, it fails. It's on my To Do > list :-) > > However, if you can see the correct file in the source window, and if > you can set a breakpoint in this window, it should work. Have you > checked whether the breakpoint is set as you expect in the > Source/Breakpoints dialog (or using the gdb command "info breakpoints")? > > Peter Wainwright > > >> 2) What is the correct method if the method I mentioned above is wrong? >> >> >> >> _______________________________________________ >> Ddd mailing list >> [email protected] >> http://lists.gnu.org/mailman/listinfo/ddd >> > > > _______________________________________________ > ddd mailing list > [email protected] > http://lists.gnu.org/mailman/listinfo/ddd > _______________________________________________ ddd mailing list [email protected] http://lists.gnu.org/mailman/listinfo/ddd
long.vcf
(text/x-vcard, 269 B)
begin:vcard fn:Knox Long n:Long;Knox org:Space Telescope Science Insitute;Webb Mission Office adr:;;3700 San Martin Drive;Baltimore;MD;21218;USA email;internet:[email protected] title:Webb Mission Scientist tel;work:410-338-4862 x-mozilla-html:TRUE version:2.1 end:vcard