One way is to configure your application server to listen for remote socket debugging.
In JBoss AS 7 this can be done by uncommenting the following line in bin/standalone.conf, for JBoss 5 the file is instead bin/run.conf:
JAVA_OPTS="$JAVA_OPTS -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
Then in NetBeans IDE, click the menu Debug -> Attach debugger and make sure the port is 8787. After that you should be connected to the app server and you can can start debugging by setting breakpoints in the code etc.
Hi everybody,
I have opened source code of signserver on netbean 7.0. Then i want to debug that source code on netbean, how to do it?
Thanks for help/
Last edit: petr 2015-04-08
Hi petr,
One way is to configure your application server to listen for remote socket debugging.
In JBoss AS 7 this can be done by uncommenting the following line in bin/standalone.conf, for JBoss 5 the file is instead bin/run.conf:
JAVA_OPTS="$JAVA_OPTS -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
Then in NetBeans IDE, click the menu Debug -> Attach debugger and make sure the port is 8787. After that you should be connected to the app server and you can can start debugging by setting breakpoints in the code etc.
Cheers,
Markus
PrimeKey
PrimeKey Solutions offers a commercial EJBCA & SignServer support subscription and training. Please see www.primekey.se or contact info@primekey.se for more information.
https://www.primekey.se/Services/Support/
https://www.primekey.se/Services/Training/