Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to enable debug in plugin
How to enable debug in plugin [message #333494] Mon, 15 December 2008 18:28 Go to next message
Mikael Petterson is currently offline Mikael PettersonFriend
Messages: 158
Registered: July 2009
Senior Member
Hi,

The plugin that I am working on has Plugin.class that has the
setDebugging(boolean). How can I set it to true when I run Eclipse
Application to test my plugin.

cheers,

//mike
Re: How to enable debug in plugin [message #333502 is a reply to message #333494] Mon, 15 December 2008 19:48 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Mikael Petterson wrote:
> Hi,
>
> The plugin that I am working on has Plugin.class that has the
> setDebugging(boolean). How can I set it to true when I run Eclipse
> Application to test my plugin.

You could simply check
org.eclipse.core.runtime.Platform.inDevelopmentMode() which is active
when you are in development mode.

The other option is to set up your plugin similar to
org.eclipse.ui.internal.misc.Policy ... and use the debug options
pattern used by the eclipse SDK. a .options file that describes your
properties is placed in the base of your plugin and that is used to turn
tracing on or off (and can even be used from the launch config).

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Previous Topic:Edit menu options do not get enabled for all views
Next Topic:get File or class Name from IDocumet
Goto Forum:
  


Current Time: Sat Oct 19 05:50:39 GMT 2024

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

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

Back to the top