This is a very useful thread!
To add my 2 cents here...
1) When I need to debug plugins running inside XJC Ant task (or XJC ant
task itself), I run and with the remote debug option:
$ export ANT_OPTS="-Xrunjdwp:transport=dt_socket,server=y,address=8000"
$ ant
and then attach IDE debugger remotely.
2) When I need to debug plugins running inside standalone xjc
invocation, I do:
$ java -Xrunjdwp:transport=dt_socket,server=y,address=8000 -jar \
jaxb-xjc.jar ...
I made a little wrapper shell script for those; they are 'antd' and
'javad' respectively. This approach works in other situations, not just
JAXB.
marcos_at_softingsystems.com.br wrote:
> Hi all,
>
> I'm trying to setup an environment to debug pre-existent JAXB plugins.
> I'm basically running the xjc from ant.
>
> Question.: How can I debug / setup an environment for plugin debugging ?
>
> Thank you very much
> Marcos
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>
--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi_at_sun.com