Search code examples
javaeclipsehibernatepluginsrcp

How to debug external plugin in Eclipse?


I have a question regarding debuging an Eclipse plugin in production (Hibernate Tools).

I downloaded the source package from JBoss repo, but I am unable to view org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter source code and add a breakpoint.

I am just running a normal Java EE instance of Eclipse.

Is it possible to do something like that?


Solution

  • You need to import the plugin into your workspace :

    Right click on explorer > Import ... > Plugin and fragments 
    

    then, on first page :

    **Import From :** The active target platform
    **Plugins and Fragments to Import :** Select from all plugins...
    **Import As :** Project with source folder
    

    On the second page :

    Double click on the plugin wanted (probably org.hibernate.*)
    

    Then finish, the plugin should be available as source for debugging in your workspace.