[英]debugging an unmanaged Neo4j extension
I just started developing an unmanaged extension for Neo4j server using the Graphaware framework. 我刚刚开始使用Graphaware框架开发Neo4j服务器的非托管扩展。 Everything is fine so far.
到目前为止一切都很好。 Even unit tests are working.
甚至单元测试也有效。 But I would like to actually debug the extension running the Neo4j server from within Intellij.
但是我实际上想从Intellij中调试运行Neo4j服务器的扩展。
Can anybody give me a hint on how to do that? 有人可以给我提示如何做吗?
Many thanks in advance, Oliver 提前非常感谢,奥利弗
PS: This extension is being called via rest interface from a separate web server providing hosting the actual web application. PS:此扩展名是通过一个单独的Web服务器上的rest接口调用的,该服务器提供了托管实际的Web应用程序。
You need to enable jvm remote debugging in conf/neo4j-wrapper.conf
. 您需要在
conf/neo4j-wrapper.conf
启用jvm远程调试。 Amend a new line to this file: 修改此文件的新行:
wrapper.java.additional=-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
In case you want to debug the startup sequence as well, use set suspend=y above. 如果还想调试启动序列,请使用上面的setsuspend = y。
In your debugger setup a remote debugging session to localhost:5005
or myhostname:5005
. 在调试器中,设置到
localhost:5005
或myhostname:5005
的远程调试会话。
对于neo4j 3.0,您必须将此行修改为conf/neo4j-wrapper.conf
。
dbms.jvm.additional=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.