How to use CDT debugger. [message #69345] |
Thu, 08 May 2003 21:29 |
Eclipse User |
|
|
|
Originally posted by: user.domain.invalid
This must be some sort of newbie error so I am hoping that someone
will set me straight.
When I debug code in the Java perspective I do the following.
1. Create a debug launch configuration.
2. Set the breakpoints in the source code.
3. Launch the debug session
4. Once the code has stopped at the breakpoint I highlight the variable
that I want to inspect and right click.
5. From the drop down menu I select inspect and the information will
appear in the Display view.
When I attempt to do this in CDT I get all the way to the step 5.
The problem is that there is no inspect menu item. I can debug the code
on the command line and show the value of the variables so I know that
the code was created with debugging turned on. I just can't get it to
work within eclipse.
My system consists of the following.
Win2K
Eclipse Version: 2.0.2
Build id: 200211071448
CDT plugin 1.0.1 F1 - Windows
cygwin
gcc GNU gdb 2003-03-03-cvs (cygwin-special)
gdb GNU gdb 2003-03-03-cvs (cygwin-special)
|
|
|
Re: How to use CDT debugger. [message #69365 is a reply to message #69345] |
Thu, 08 May 2003 21:46 |
Eclipse User |
|
|
|
Originally posted by: mikhailk.qnx.com
Use the "Run" ->"Add Expression (C/C++)" menu or the "Add Expression" item
of the context menu of C editor.
<user@domain.invalid> wrote in message news:b9ei7h$m1k$1@rogue.oti.com...
> This must be some sort of newbie error so I am hoping that someone
> will set me straight.
>
> When I debug code in the Java perspective I do the following.
> 1. Create a debug launch configuration.
> 2. Set the breakpoints in the source code.
> 3. Launch the debug session
> 4. Once the code has stopped at the breakpoint I highlight the variable
> that I want to inspect and right click.
> 5. From the drop down menu I select inspect and the information will
> appear in the Display view.
>
> When I attempt to do this in CDT I get all the way to the step 5.
> The problem is that there is no inspect menu item. I can debug the code
> on the command line and show the value of the variables so I know that
> the code was created with debugging turned on. I just can't get it to
> work within eclipse.
>
> My system consists of the following.
> Win2K
> Eclipse Version: 2.0.2
> Build id: 200211071448
> CDT plugin 1.0.1 F1 - Windows
> cygwin
> gcc GNU gdb 2003-03-03-cvs (cygwin-special)
> gdb GNU gdb 2003-03-03-cvs (cygwin-special)
>
|
|
|
|
|
Re: How to use CDT debugger. [message #69525 is a reply to message #69365] |
Fri, 09 May 2003 13:52 |
Eclipse User |
|
|
|
Originally posted by: user.domain.invalid
Maybe I am using the wrong version. I don't have the "Add Expression
(C/C++)" item on the "Run" menu. In fact, even when I am debugging
C/C++ code I still have the "Add Java Exception Breakpoint" on the Run menu.
The good news is that there is an add expression on the C editor context
menu so everything works now.
Thanks for your help.
Mikhail Khodjaiants wrote:
> Use the "Run" ->"Add Expression (C/C++)" menu or the "Add Expression" item
> of the context menu of C editor.
>
> <user@domain.invalid> wrote in message news:b9ei7h$m1k$1@rogue.oti.com...
>
>> This must be some sort of newbie error so I am hoping that someone
>>will set me straight.
>>
>> When I debug code in the Java perspective I do the following.
>>1. Create a debug launch configuration.
>>2. Set the breakpoints in the source code.
>>3. Launch the debug session
>>4. Once the code has stopped at the breakpoint I highlight the variable
>>that I want to inspect and right click.
>>5. From the drop down menu I select inspect and the information will
>>appear in the Display view.
>>
>> When I attempt to do this in CDT I get all the way to the step 5.
>>The problem is that there is no inspect menu item. I can debug the code
>>on the command line and show the value of the variables so I know that
>>the code was created with debugging turned on. I just can't get it to
>>work within eclipse.
>>
>> My system consists of the following.
>>Win2K
>>Eclipse Version: 2.0.2
>>Build id: 200211071448
>>CDT plugin 1.0.1 F1 - Windows
>>cygwin
>>gcc GNU gdb 2003-03-03-cvs (cygwin-special)
>>gdb GNU gdb 2003-03-03-cvs (cygwin-special)
>>
>
>
>
|
|
|
Re: How to use CDT debugger. [message #69545 is a reply to message #69525] |
Fri, 09 May 2003 14:18 |
Eclipse User |
|
|
|
Originally posted by: mikhailkhod.rogers.com
You have to customize your debug perspective to see all C/C++ actions. In
the Debug perspective open "Window"-->"Customize perspective"-->"Other" and
check the "C/C++ Debug" box. In the latest version it is checked by default.
To customize your views open "Window"-->"Preferences"-->"Debug"-->"Debug
Action Groups" and check/uncheck the "C/C++ Debug" and "Java Debug" boxes.
<user@domain.invalid> wrote in message news:b9gbrb$nau$1@rogue.oti.com...
> Maybe I am using the wrong version. I don't have the "Add Expression
> (C/C++)" item on the "Run" menu. In fact, even when I am debugging
> C/C++ code I still have the "Add Java Exception Breakpoint" on the Run
menu.
>
> The good news is that there is an add expression on the C editor context
> menu so everything works now.
>
> Thanks for your help.
>
> Mikhail Khodjaiants wrote:
> > Use the "Run" ->"Add Expression (C/C++)" menu or the "Add Expression"
item
> > of the context menu of C editor.
> >
> > <user@domain.invalid> wrote in message
news:b9ei7h$m1k$1@rogue.oti.com...
> >
> >> This must be some sort of newbie error so I am hoping that someone
> >>will set me straight.
> >>
> >> When I debug code in the Java perspective I do the following.
> >>1. Create a debug launch configuration.
> >>2. Set the breakpoints in the source code.
> >>3. Launch the debug session
> >>4. Once the code has stopped at the breakpoint I highlight the variable
> >>that I want to inspect and right click.
> >>5. From the drop down menu I select inspect and the information will
> >>appear in the Display view.
> >>
> >> When I attempt to do this in CDT I get all the way to the step 5.
> >>The problem is that there is no inspect menu item. I can debug the code
> >>on the command line and show the value of the variables so I know that
> >>the code was created with debugging turned on. I just can't get it to
> >>work within eclipse.
> >>
> >> My system consists of the following.
> >>Win2K
> >>Eclipse Version: 2.0.2
> >>Build id: 200211071448
> >>CDT plugin 1.0.1 F1 - Windows
> >>cygwin
> >>gcc GNU gdb 2003-03-03-cvs (cygwin-special)
> >>gdb GNU gdb 2003-03-03-cvs (cygwin-special)
> >>
> >
> >
> >
>
|
|
|
Powered by
FUDForum. Page generated in 0.04874 seconds