Newbie question on debugging Plugins... [message #81004] |
Mon, 23 June 2003 18:25  |
Eclipse User |
|
|
|
I have written a plugin (a form painter) that gives me errors on starting
Eclipse. I would like to step through and find out what is happening and
where the error is. What is the best way to do this?
Shankar
|
|
|
Re: Newbie question on debugging Plugins... [message #81081 is a reply to message #81004] |
Mon, 23 June 2003 23:44  |
Eclipse User |
|
|
|
Originally posted by: ed.burnette.REMOVE.THIS.sas.com
First off it sounds like you've installed a plugin you wrote into your
regular Eclipse plugins directory and restarted Eclipse, and now it's having
some errors comming up, right? There's actually an easier way to do this.
First remove the plugin pieces you installed and restart Eclipse. Then click
on your plugin project and select Run > Debug As > Run-time Workbench. This
sill start up a new instance of Eclipse that you can debug, set breakpoints
in, single step, and so on just like a normal Java program. You don't need
to package a zip or install anything until you're ready for someone else to
try the plugin.
If you're already using the Run-time Workbench, then it really depends on
the errors you're getting. If you're getting errors about exceptions, you
can set breakpoints on the particular exceptions you're getting. If you have
a traceback (sometimes you have to go to Window > Show View > Other > PDE
Runtime > Error Log to see the tracebacks), then setting breakpoints just
before the errors occur can be helpful.
For some tutorial information on plugins there are many fine articles at
www.eclipse.org/articles, and also you might want to download and read
chapter 8 (Introduction to plugins) from our book at
www.manning.com/gallardo (click Sample Chapters). See info on other books
and resources at www.eclipse.org/community .
Hope this helps.
--
Ed Burnette, co-author Eclipse in Action
"Shankar Venkataraman" <shankar.venkataraman@epiphany.com> wrote in message
news:bd7uo3$cuh$1@rogue.oti.com...
> I have written a plugin (a form painter) that gives me errors on starting
> Eclipse. I would like to step through and find out what is happening and
> where the error is. What is the best way to do this?
>
> Shankar
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.46984 seconds