No runtimeexception console output [message #244442] |
Wed, 02 January 2008 05:53  |
Eclipse User |
|
|
|
Originally posted by: kai.kai.kai
Hello!
I just started writing a little RCP Application with Eclipse. I am pretty
new to RCP programming and also to Eclipse.
Now I have a problem with the following little scenario:
When I put a "thow new RuntimeException()" into Perspective.java for
example, the program exits as exspected and the RuntimeException is shown
on the console output.
But when I create a new Action (implementing IWorkbenchAction) for a menu
item, that should open a TitleAreaDialog and then throw a
RuntimeExcepction inside that Dialog (maybe in the overriden method
createDialogArea), the Dialog never shows up and no output appears on the
console.
The only thing, that I can think of, is that TitleAreaDialog is created in
a new thread, and that thread stops, but outputs it's RuntimeException to
another pipe,
that is not observed by the normal Eclipse console.
This makes manual debugging (without debugger) hard. Is there a
possibility to get those Exceptions on the Eclipse console as well?
|
|
|
Re: No runtimeexception console output [message #244460 is a reply to message #244442] |
Wed, 02 January 2008 08:14   |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Kai,
Is it possible the exception is being logged so it appears in
<workspace>/.metadata/.log. Are you running with -consolelog so that
all logged exceptions are also printed to the console?
Kai Schlamp wrote:
> Hello!
>
> I just started writing a little RCP Application with Eclipse. I am
> pretty new to RCP programming and also to Eclipse.
>
> Now I have a problem with the following little scenario:
> When I put a "thow new RuntimeException()" into Perspective.java for
> example, the program exits as exspected and the RuntimeException is
> shown on the console output.
> But when I create a new Action (implementing IWorkbenchAction) for a
> menu item, that should open a TitleAreaDialog and then throw a
> RuntimeExcepction inside that Dialog (maybe in the overriden method
> createDialogArea), the Dialog never shows up and no output appears on
> the console.
>
> The only thing, that I can think of, is that TitleAreaDialog is
> created in a new thread, and that thread stops, but outputs it's
> RuntimeException to another pipe,
> that is not observed by the normal Eclipse console.
>
> This makes manual debugging (without debugger) hard. Is there a
> possibility to get those Exceptions on the Eclipse console as well?
|
|
|
|
|
|
Re: No runtimeexception console output [message #244490 is a reply to message #244486] |
Wed, 02 January 2008 10:00  |
Eclipse User |
|
|
|
Originally posted by: kai.kai.kai
If someone is still interested (perhaps a future reader):
The debug mode I mentioned in my last message could be activated within
the tracing tab in the run dialog.
Just activate org.eclipse.ui.workbench and make sure debug is checked.
Kai
|
|
|
Powered by
FUDForum. Page generated in 0.08965 seconds