如何在 neo4j 社区版 windows 和 linux 中启用 jvm 远程调试
How to enable jvm remote debugging in neo4j community edition windows and linux
我想从 Eclipse 中实际调试扩展 运行 Neo4j 服务器。
任何人都可以告诉我如何做到这一点。
我看到很多对 conf/neo4j-wrapper.conf 的引用,但是在我的 windows 上找不到文件 neo4j-wrapper.conf(linux 也是一样) Neo4j 3.5.11 的服务器安装。我只有 neo4j.conf.
有人可以告诉我可以将以下内容放在哪个文件中吗?
wrapper.java.additional=-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005 -Xdebug-Xnoagent-Djava.compiler=NONE-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
如有任何帮助,我们将不胜感激。
非常感谢。
https://neo4j.com/docs/java-reference/current/server-debugging/
在文件 neo4j.conf 中
dbms.jvm.additional=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
neo4j-wrapper.conf
在 neo4j 版本 3.1 中被合并到 neo4j.conf
。
参见:https://neo4j.com/developer/kb/manually-merging-neo4jwrapperconf-into-neo4jconf-in-neo4j-31/
因此,在 neo4j 3.1+ 中,所有配置设置都在 neo4j.conf
。
添加@Schwertfisch 的答案,如果要调试在启动时执行的代码(例如触发器的构造函数),请将 suspend=n 更改为 suspend=y。使用 suspend=y,VM 在启动应用程序之前等待调试器附加。
我想从 Eclipse 中实际调试扩展 运行 Neo4j 服务器。
任何人都可以告诉我如何做到这一点。
我看到很多对 conf/neo4j-wrapper.conf 的引用,但是在我的 windows 上找不到文件 neo4j-wrapper.conf(linux 也是一样) Neo4j 3.5.11 的服务器安装。我只有 neo4j.conf.
有人可以告诉我可以将以下内容放在哪个文件中吗?
wrapper.java.additional=-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005 -Xdebug-Xnoagent-Djava.compiler=NONE-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
如有任何帮助,我们将不胜感激。
非常感谢。
https://neo4j.com/docs/java-reference/current/server-debugging/ 在文件 neo4j.conf 中 dbms.jvm.additional=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
neo4j-wrapper.conf
在 neo4j 版本 3.1 中被合并到 neo4j.conf
。
参见:https://neo4j.com/developer/kb/manually-merging-neo4jwrapperconf-into-neo4jconf-in-neo4j-31/
因此,在 neo4j 3.1+ 中,所有配置设置都在 neo4j.conf
。
添加@Schwertfisch 的答案,如果要调试在启动时执行的代码(例如触发器的构造函数),请将 suspend=n 更改为 suspend=y。使用 suspend=y,VM 在启动应用程序之前等待调试器附加。