Neo4j's remote debugging setup
In the production setup, it is always advisable to do remote debugging, and the Neo4j server provides the mechanism for this.
In this recipe, you will learn how to set up Neo4j for remote debugging and attach it to an IDE from a remote machine.
Getting ready
The following steps will get you started with this recipe:
We have assumed that Neo4j is up and running. If it is not, use the appropriate recipe to deploy and run Neo4j.
Install the Java IDE of your choice. In this recipe, we will demonstrate how to use IntelliJ.
How to do it...
Add the following lines to your
conf/neo4j-wrapper.properties
file:# Java Additional Parameters wrapper.java.additional.1=-Dorg.neo4j.server.properties=conf/neo4j-server.properties wrapper.java.additional.2=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 \ -Xdebug-Xnoagent-Djava.compiler=NONE\ -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
Restart the Neo4j server by using the following command:
./bin...