cancel
Showing results for 
Search instead for 
Did you mean: 

How to debug the nuxeo local server

Rahul_Mittal
Champ in-the-making
Champ in-the-making

We have created some plugins and deploy those plugins on nuxeo local server. How to debug the plugins deployed on nuxeo local server with debugger points

4 REPLIES 4

Patrick_Abgrall
Star Contributor
Star Contributor

In nuxeo.conf, uncomment the line which looks like: JAVA_OPTS=$JAVA_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n then, in your Java debugger, point to :8787 , then you can set breakpoints in your code.

Rodri_
Star Contributor
Star Contributor

Hello,

I think @Patrick Abgrall response is quite clear for experienced users, but it can be tricky for newbies.

After uncommenting the line in the nuxeo.conf file, you will need to start your nuxeo instance. Once it is running, go to your Eclipse project, Right click -> Debug as... -> Debug configurations... Then, duble click on "Remote Java Application", introduce your host ("localhost" if you are running the Nuxeo instance in the same machine) and put 8787 as port.

Finally, click on "Debug". And that's it!

If it gives you an error connection, check that, in the line you uncommented at the very first step, the "address" value is 8787. If that value is different, just put the same value in the Eclipse configuration.

Regards.

a_c
Confirmed Champ
Confirmed Champ

Hello Rodri, is there any way to acheive the same using IntelliJ? Thanks

Rodri_
Star Contributor
Star Contributor

Hello a c. I don't use IntelliJ, but I think the process is quite similar. Just take a look at this, for example