Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to enable debug in plugin
How to enable debug in plugin [message #333494] Mon, 15 December 2008 13:28 Go to next message
Eclipse UserFriend
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 14:48 Go to previous message
Eclipse UserFriend
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: Fri Apr 25 19:29:01 EDT 2025

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

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

Back to the top