>>> Are you able to manually switch the perspective to debug with
>>> Window/Open Perspective/Other.../Debug?
>>
>> If you want to debug perspective then right click on your program and
>> the select "Debug as..." The Debug perspective automatically opens.
What exactly do you mean by "right-clicking the program"? I can't
right-click and select debug as anywhere, I think.
>> It should stay opened and you just have to click on the perspective
>> tab or what other perspective you have open at the same time in the
>> Tabs to move back and forth.
It stays open and doesn't bug me if I disabled the "suspend prompt".
This "suspend prompt" is apparently enabled by default. But my problem
isn't big - I can just disable it.
> The debug perspective will only open when you select "Debug As..." if
> you said "Yes" to the first time when Eclipse asked "Do you always want
> to switch to the debug perspective when debugging?" and checked the
> "Never ask me again" box.
I can't remember if it asked this.
> If you said "No", then the way to access the debugging perspective is
> to use the menu "Window->Open Perspective->Other..." then in the list,
> select the Debug perspective.
I usually just click on the "Debug"-perspective in the top right corner
next to where the C/C++-icon is, but that should be the same - at least
the result is.
Best regards / Med venlig hilsen
Martin Jørgensen

Signature
---------------------------------------------------------------------------
Home of Martin Jørgensen - http://www.martinjoergensen.dk
-snip-
Oh yes, another thing: I can't see any variables in the "Variables"
view... And the "Registers" view is empty too... Normally in other
debuggers I've seen that the variables that are current in scope is
displayed in the "Variables" view... But perhaps I'm doing something wrong?
Best regards / Med venlig hilsen
Martin Jørgensen

Signature
---------------------------------------------------------------------------
Home of Martin Jørgensen - http://www.martinjoergensen.dk
Oliver Wong - 11 May 2006 23:17 GMT
> -snip-
>
[quoted text clipped - 3 lines]
> displayed in the "Variables" view... But perhaps I'm doing something
> wrong?
Are you actually debugging a program? Is the programmed in a paused
state?
- Oliver
Oliver Wong - 11 May 2006 23:19 GMT
>> -snip-
>>
[quoted text clipped - 6 lines]
> Are you actually debugging a program? Is the programmed in a paused
> state?
I just remembered you're working with C++ and not Java. Perhaps the CDT
doesn't use the debugging perspective to do its debugging. Recall how, when
you tried to do some debugging, it tried to convince you to switch to some
other perspective. Have you tried going to that perspective that it
suggested, and seeing if the debugging information shows up there?
Alternatively, just go to the Eclipse CDT newsgroup and ask them about
it.
- Oliver
Martin Jørgensen - 12 May 2006 07:06 GMT
-snip-
> I just remembered you're working with C++ and not Java. Perhaps the
> CDT doesn't use the debugging perspective to do its debugging. Recall
> how, when you tried to do some debugging, it tried to convince you to
> switch to some other perspective. Have you tried going to that
> perspective that it suggested, and seeing if the debugging information
> shows up there?
Yep. Nothing.
> Alternatively, just go to the Eclipse CDT newsgroup and ask them
> about it.
Huh? I'll do that. But I don't think I have it on my news-server because
if I search for eclipse I only get some astronautic cosmic group. I also
tried to search on google groups for "eclipse cdt plugin" but didn't
really find anything useful.
What's the name of the eclipse newsgroup? I hope I can access it on
google, although I've never tried writing with google groups.
Best regards / Med venlig hilsen
Martin Jørgensen

Signature
---------------------------------------------------------------------------
Home of Martin Jørgensen - http://www.martinjoergensen.dk
IchBin - 12 May 2006 08:30 GMT
> -snip-
>
[quoted text clipped - 20 lines]
> Best regards / Med venlig hilsen
> Martin Jørgensen
http://www.eclipse.org/newsgroups
Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
IchBin - 12 May 2006 08:42 GMT
>> -snip-
>>
[quoted text clipped - 22 lines]
>
> http://www.eclipse.org/newsgroups
or their news server = news.eclipse.org
group = eclipse.tools.cdt
go to www.eclipse.org/newsgroups (Upper right hand conner) and request a
free account so you can login to their news server to submit questions.
Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
Martin Jørgensen - 12 May 2006 22:33 GMT
-snip-
>> http://www.eclipse.org/newsgroups
>
[quoted text clipped - 3 lines]
> go to www.eclipse.org/newsgroups (Upper right hand conner) and request a
> free account so you can login to their news server to submit questions.
Thanks, I'll try that.
Best regards / Med venlig hilsen
Martin Jørgensen

Signature
---------------------------------------------------------------------------
Home of Martin Jørgensen - http://www.martinjoergensen.dk
Dale King - 15 May 2006 16:43 GMT
>>> Oh yes, another thing: I can't see any variables in the "Variables"
>>> view... And the "Registers" view is empty too... Normally in other
>>> debuggers I've seen that the variables that are current in scope is
>>> displayed in the "Variables" view... But perhaps I'm doing something
>>> wrong?
The issue there is more likely how your program is compiled. You have to
make sure that the binary actually contains debugging information and
the information is of the correct type. For GNU compilers you have to
add the -ggdb3 flag to the compile and link.
You don't usually want this debug information in the version you ship so
you either need to have a different profile that doesn't generate this
information. You can also run a strip program to strip the information,
but you usually want to change optimization as well between debugging
and the shipping version. If you are running the program remotely and
connecting with GDB on the target then you can run your program with the
symbols stripped on the target, but use the one with symbols on the
machine running gdb.
Another issue affecting debugging is the finding of source files on
Windows machines when using a non-windows compiler. If the compiler you
are using is something like cygwin then the information in the file will
contain cygwin style paths (/cygdrive/c/mypath/myfile.c). But Eclipse
uses windows paths. It can handle forward slashes instead of
backslashes, but will no nothing about /cygdrive/c. So Eclipse supports
path mappings which allow you to say things like /cygdrive/c really maps
to C:.
> I just remembered you're working with C++ and not Java. Perhaps the
> CDT doesn't use the debugging perspective to do its debugging.
The CDT does use the debug perspective. It adds a few views to it
specific for C, such as a memory view, disassembly, and registers but is
the same old debug perspective.

Signature
Dale King
Martin Jørgensen - 12 May 2006 06:59 GMT
>> -snip-
>>
[quoted text clipped - 6 lines]
> Are you actually debugging a program? Is the programmed in a paused
> state?
Yes it works fine (the program is suspended after each execution line),
but I don't see the values of the variables.
Best regards / Med venlig hilsen
Martin Jørgensen

Signature
---------------------------------------------------------------------------
Home of Martin Jørgensen - http://www.martinjoergensen.dk