debug plugin

19 views
Skip to first unread message

Andreas Wederbrand

unread,
Apr 22, 2014, 9:11:13 AM4/22/14
to Repo and Gerrit Discussion
Hi!

Is it possible to debug a Gerrit plugin I'm developing?

Gerrit is running locally and is not used by anyone except me so it's fine to hang it while debugging.

Thanks.

Dariusz Luksza

unread,
Apr 22, 2014, 9:16:17 AM4/22/14
to Andreas Wederbrand, Repo and Gerrit Discussion
You can use java remote debug functionality, just modify
gerrit.config, set container.javaOptions to (or append if you have
already something in javaOptions):

-Xdebug -Xrunjdwp:transport=dt_socket,address=8998,server=y,suspend=n

Then connect with it using remote debug from Eclipse.
> --
> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> More info at http://groups.google.com/group/repo-discuss?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Repo and Gerrit Discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to repo-discuss...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Best regards

GSM: +49 017 445 41235
Blog: http://luksza.org http://javablog.pl
LinkedIn: http://linkedin.com/in/dariuszluksza
Reply all
Reply to author
Forward
0 new messages