我怎样才能最好地调试intelliJ-idea中的solr? [英] How can I best debug solr in intelliJ-idea?

查看:87
本文介绍了我怎样才能最好地调试intelliJ-idea中的solr?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何最好地在intelliJ-idea中调试solr?哪种方法容易?将查询发布到solr时,我要处理此问题.

How can I best debuging solr in intelliJ-idea? Which way is easy? when post a query to solr, I want to handle this.

推荐答案

您可以设置远程调试.在运行/调试配置中:

You can set up the remote debugging. In the Run/Debug Configurations:

然后在使用默认码头(此码头处于多核模式)启动solr时,传入:

Then when starting your solr with the default jetty (this one is in multicore mode), pass in:

java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000 -Dsolr.solr.home=multicore -jar start.jar

在solr启动后,点击运行->调试按钮,然后选择 debug 配置.IntelliJ IDEA附加到Solr java进程,并且所有调试工具都应该对您可用.

After solr has started hit Run -> Debug button and choose the debug config. The IntelliJ IDEA attaches to the Solr java process and all the debugging goodies should be available to you.

这篇关于我怎样才能最好地调试intelliJ-idea中的solr?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆