[英]How to Debug gremlin groovy script when load data to Titan
I'm new to titan and groovy. 我是泰坦和时髦的新手。 I wrote a groovy script to load data to titan, executed with ./bin/gremlin.sh -e load.groovy
. 我写了一个groovy脚本来加载数据到titan,用./bin/gremlin.sh -e load.groovy
执行。 When this script is running, it always throws Exception. 当此脚本运行时,它始终抛出异常。 Has there a way to debug when running gremlin groovy script? 有没有办法在运行gremlin groovy脚本时进行调试? I'm really exhausted to write printf
everywhere. 到处写printf
我真的printf
。 Or another way to load data to titan with debugging? 或者通过调试将数据加载到titan的另一种方法?
Most of the code you wrote in that file is in Groovy language (except few add-ons methods). 您在该文件中编写的大多数代码都是使用Groovy语言(除了少数附加组件方法)。 You could use any IDE to run supporting Groovy to run this code. 您可以使用任何IDE运行支持Groovy来运行此代码。
Remember that you might have to exchange few code like :remote ..
with TitanFactory.open(..)
. 请记住,您可能需要交换一些代码,例如:remote ..
with TitanFactory.open(..)
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.