Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > newbie question about eclipse perspective...

Reply
Thread Tools

newbie question about eclipse perspective...

 
 
=?ISO-8859-1?Q?Martin_J=F8rgensen?=
Guest
Posts: n/a
 
      05-10-2006
Hi,

I just downloaded eclipse with the CDT (c/c++ extension) and now I can
compile programs using makefiles. That's great...

But when I debug I guess it calls the gdb-debugger and when it returns
it keeps bringing me a dialog box which says: "Confirm Perspective
Switch" in the heading and "! This kind of launch is configured to open
the C/C++ perspective when it suspends. Do you want to open this
perspective now?"

Ofcourse I could just answer "no" and "remember this setting", but where
is this set up in the program?


Best regards / Med venlig hilsen
Martin Jørgensen

--
---------------------------------------------------------------------------
Home of Martin Jørgensen - http://www.martinjoergensen.dk
 
Reply With Quote
 
 
 
 
Oliver Wong
Guest
Posts: n/a
 
      05-10-2006

"Martin Jørgensen" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> I just downloaded eclipse with the CDT (c/c++ extension) and now I can
> compile programs using makefiles. That's great...
>
> But when I debug I guess it calls the gdb-debugger and when it returns it
> keeps bringing me a dialog box which says: "Confirm Perspective Switch" in
> the heading and "! This kind of launch is configured to open the C/C++
> perspective when it suspends. Do you want to open this perspective now?"
>
> Ofcourse I could just answer "no" and "remember this setting", but where
> is this set up in the program?


Probably somewhere in Windows->Preferences. I don't have the CDT plugin,
so I can't give you an exact location, but when you open
Windows->Preference, you'll see a textbox with the contents "type filter
text". Type in something there like "CDT" or "C/C++" and you'll only see the
preferences related to CDT, which will narrow down your search.

- Oliver

 
Reply With Quote
 
 
 
 
=?ISO-8859-1?Q?Martin_J=F8rgensen?=
Guest
Posts: n/a
 
      05-10-2006
Oliver Wong wrote:
>
> "Martin Jørgensen" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>
>> Hi,
>>
>> I just downloaded eclipse with the CDT (c/c++ extension) and now I can
>> compile programs using makefiles. That's great...
>>
>> But when I debug I guess it calls the gdb-debugger and when it returns
>> it keeps bringing me a dialog box which says: "Confirm Perspective
>> Switch" in the heading and "! This kind of launch is configured to
>> open the C/C++ perspective when it suspends. Do you want to open this
>> perspective now?"
>>
>> Ofcourse I could just answer "no" and "remember this setting", but
>> where is this set up in the program?

>
>
> Probably somewhere in Windows->Preferences. I don't have the CDT
> plugin, so I can't give you an exact location, but when you open
> Windows->Preference, you'll see a textbox with the contents "type filter
> text". Type in something there like "CDT" or "C/C++" and you'll only see
> the preferences related to CDT, which will narrow down your search.


Thanks a lot for the hint...

I found it, but I still have a problem. Perhaps you can see it too under
Windows -> Preferences -> Run/Debug -> Option 3 or 4 from the top. It
says: "Activate the debug view when a breakpoint is hit". I have that
box marked... Below it says: "Open the associated perspective when an
application suspends". And here it is (I found out by experimenting)...
I had it on "prompt" before. If I put it on never, it doesn't asks me again.

But actually I would like to have it on "Always" if I could just change
the associated perspective to "Debug"... I even tried to do that under
General -> Perspectives -> "Debug" is now default... But it still
doesn't work. Somehow C/C++ is associated.

I tried to close all perspectives and start them again... Yet I get:
"!This kind of launch is configured to open the C/C++ perspective when
it suspends. Do you want to open this perspective now?"

Anyone knows how to do it - make "Debug" the associated perspective?



Best regards / Med venlig hilsen
Martin Jørgensen

--
---------------------------------------------------------------------------
Home of Martin Jørgensen - http://www.martinjoergensen.dk
 
Reply With Quote
 
Oliver Wong
Guest
Posts: n/a
 
      05-10-2006

"Martin Jørgensen" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Oliver Wong wrote:
>>
>> "Martin Jørgensen" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>
>>> Hi,
>>>
>>> I just downloaded eclipse with the CDT (c/c++ extension) and now I can
>>> compile programs using makefiles. That's great...
>>>
>>> But when I debug I guess it calls the gdb-debugger and when it returns
>>> it keeps bringing me a dialog box which says: "Confirm Perspective
>>> Switch" in the heading and "! This kind of launch is configured to open
>>> the C/C++ perspective when it suspends. Do you want to open this
>>> perspective now?"
>>>
>>> Ofcourse I could just answer "no" and "remember this setting", but where
>>> is this set up in the program?

>>
>>
>> Probably somewhere in Windows->Preferences. I don't have the CDT
>> plugin, so I can't give you an exact location, but when you open
>> Windows->Preference, you'll see a textbox with the contents "type filter
>> text". Type in something there like "CDT" or "C/C++" and you'll only see
>> the preferences related to CDT, which will narrow down your search.

>
> Thanks a lot for the hint...
>
> I found it, but I still have a problem. Perhaps you can see it too under
> Windows -> Preferences -> Run/Debug -> Option 3 or 4 from the top. It
> says: "Activate the debug view when a breakpoint is hit". I have that box
> marked... Below it says: "Open the associated perspective when an
> application suspends". And here it is (I found out by experimenting)... I
> had it on "prompt" before. If I put it on never, it doesn't asks me again.
>
> But actually I would like to have it on "Always" if I could just change
> the associated perspective to "Debug"... I even tried to do that under
> General -> Perspectives -> "Debug" is now default... But it still doesn't
> work. Somehow C/C++ is associated.
>
> I tried to close all perspectives and start them again... Yet I get:
> "!This kind of launch is configured to open the C/C++ perspective when it
> suspends. Do you want to open this perspective now?"
>
> Anyone knows how to do it - make "Debug" the associated perspective?


I suspect you cannot do that. Your best bet would be to write to the
developers of CDT asking for them to add in this option. Get an account on
Eclipse's newsserver (see http://www.eclipse.org/newsgroups/), then post to
eclipse.tools.cdt.

- Oliver

 
Reply With Quote
 
ducnbyu@aol.com
Guest
Posts: n/a
 
      05-10-2006
Are you able to manually switch the perspective to debug with
Window/Open Perspective/Other.../Debug?

 
Reply With Quote
 
IchBin
Guest
Posts: n/a
 
      05-10-2006
http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:
> 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. 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.

--

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-)
 
Reply With Quote
 
Oliver Wong
Guest
Posts: n/a
 
      05-11-2006

"IchBin" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> (E-Mail Removed) wrote:
>> 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. 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.


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.

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.

- Oliver

 
Reply With Quote
 
=?ISO-8859-1?Q?Martin_J=F8rgensen?=
Guest
Posts: n/a
 
      05-11-2006
(E-Mail Removed) wrote:
> Are you able to manually switch the perspective to debug with
> Window/Open Perspective/Other.../Debug?


Yes.


Best regards / Med venlig hilsen
Martin Jørgensen

--
---------------------------------------------------------------------------
Home of Martin Jørgensen - http://www.martinjoergensen.dk
 
Reply With Quote
 
=?ISO-8859-1?Q?Martin_J=F8rgensen?=
Guest
Posts: n/a
 
      05-11-2006
Oliver Wong wrote:
>
> "IchBin" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>
>> (E-Mail Removed) wrote:
>>
>>> 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

--
---------------------------------------------------------------------------
Home of Martin Jørgensen - http://www.martinjoergensen.dk
 
Reply With Quote
 
=?ISO-8859-1?Q?Martin_J=F8rgensen?=
Guest
Posts: n/a
 
      05-11-2006
Oliver Wong wrote:
-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

--
---------------------------------------------------------------------------
Home of Martin Jørgensen - http://www.martinjoergensen.dk
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
org.eclipse.ant.core.AntSecurityException Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench". jygoo Java 1 03-22-2006 06:04 PM
Nokia + Eclipse: creating JAR files from eclipse John Goche Java 2 01-22-2006 01:53 AM
[ECLIPSE] [PRIVACY] - Direct Violation of Eclipse Foundations PrivacyPolicy Ilias Lazaridis Java 0 01-16-2005 11:31 AM
[ECLIPSE] [CENSORSHIP] - Mike Milinkovich (Eclipse Foundation Director)Censors Forums Ilias Lazaridis Java 0 01-08-2005 12:23 PM
Deploying eclipse plugin cleared everything in eclipse - project references in package explorer etc. javaguy44 Java 1 08-18-2004 03:24 PM



Advertisments