How to debug plugin

20 views
Skip to first unread message

htsn wijesuriya

unread,
Apr 19, 2018, 3:49:21 AM4/19/18
to Jenkins Users
Dear team,
I"m new for plugin development ,I tried to created Jenkins plugin support in blue ocean as well,my blocking point is I can"t find the way to debug it.
Can I know the how to debug my plugin?
Thanks
HTSN 

Tomas Bjerre

unread,
Apr 22, 2018, 1:17:43 AM4/22/18
to Jenkins Users
As a developer, what I do is this:
 1.  Clone the repo
 2. Run the plugin with: mvnDebug -q hpi:run -Djava.util.logging.config.file=logging.properties -Djenkins.version=2.89.3
3. Attach a debugger, I use Eclipse

I also have a logging.properties file containing:

handlers = java.util.logging.ConsoleHandler
org.jenkinsci.plugins.jvcts.level = FINE
java.util.logging.ConsoleHandler.level = FINE

If you are not a developer, I would suggest filing a detailed issue on the plugin. Perhaps it needs better logging, or some sort of feedback.
Reply all
Reply to author
Forward
0 new messages