Breakpoints, source file debug problems [message #55079] |
Fri, 20 December 2002 16:19  |
Eclipse User |
|
|
|
I'm new to CDT and am trying to get through some of the basics.
I have a simple "hello" type of CPP program and succeeded in the build
and run phases just fine. I am using CDT on windows with cygwin
installed.
However, in trying to debug:
1) My breakpoints do not seem to take hold - when I lauch, it looks like
I stop at main as expected, but any step or go will not stop at a
further specified breakpoint, and runs to termination.
2) I get a message -
"The source could not be shown as the file '' was not found"
I'm sure that I just missed something basic on this - any suggestions?
Thanks,
Don
|
|
|
Re: Breakpoints, source file debug problems [message #55159 is a reply to message #55079] |
Sat, 21 December 2002 13:04  |
Eclipse User |
|
|
|
Originally posted by: mikhailkhod.rogers.com
Make sure that you compiled your program with '-g' option. This usually
happens when you try to debug an executable with no debug information.
Mikhail Khodjaiants
"Donald P. Pazel" <pazel@us.ibm.com> wrote in message
news:3E03897F.B5E701D0@us.ibm.com...
> I'm new to CDT and am trying to get through some of the basics.
>
> I have a simple "hello" type of CPP program and succeeded in the build
> and run phases just fine. I am using CDT on windows with cygwin
> installed.
>
> However, in trying to debug:
> 1) My breakpoints do not seem to take hold - when I lauch, it looks like
> I stop at main as expected, but any step or go will not stop at a
> further specified breakpoint, and runs to termination.
> 2) I get a message -
> "The source could not be shown as the file '' was not found"
>
> I'm sure that I just missed something basic on this - any suggestions?
>
> Thanks,
> Don
>
|
|
|
Powered by
FUDForum. Page generated in 0.03265 seconds