Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » How to use CDT debugger.
How to use CDT debugger. [message #69345] Thu, 08 May 2003 21:29 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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: another problem of debugger. [message #69384 is a reply to message #69365] Fri, 09 May 2003 09:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: billhao.hotmail.com

when I add a variable to inspector, and run to next line, the window is
changed to console, I have to change it back to inspector manaully. Any way
to solve this problem?
Thanks.

bill
--
e-mail: billhao@hotmail.com
MSN Messenger: billhao@hotmail.com
Web: http://www.minivoice.com


"Mikhail Khodjaiants" <mikhailk@qnx.com> д
Re: another problem of debugger. [message #69505 is a reply to message #69384] Fri, 09 May 2003 12:47 Go to previous messageGo to next message
David Inglis is currently offline David InglisFriend
Messages: 45
Registered: July 2009
Member
Either arrange your views so that they can both be visible, or uncheck the
2 'Show when program writes to...' options in 'Window->Preferences->Debug->Console'.


bill wrote:
> when I add a variable to inspector, and run to next line, the window is
> changed to console, I have to change it back to inspector manaully. Any way
> to solve this problem?
> Thanks.
>
> bill
> --
> e-mail: billhao@hotmail.com
> MSN Messenger: billhao@hotmail.com
> Web: http://www.minivoice.com
>
>
> "Mikhail Khodjaiants" <mikhailk@qnx.com> дÈëÓʼþ
> news:b9ej8v$mne$1@rogue.oti.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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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)
> >>
> >
> >
> >
>
Previous Topic:UI framework
Next Topic:not possible to debug
Goto Forum:
  


Current Time: Wed Sep 18 17:29:42 GMT 2024

Powered by FUDForum. Page generated in 0.02932 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top