Run/Debug ElasticSearch in IntelliJ

Is there a way to debug ElasticSearch server in realtime from IntelliJ? I don't have any exp with Maven. My goal is to have it running while I can debug it and inspect variables and the execution flow.

Answer:1

Ok found it. Use the Run menu of IntelliJ to add a new run configuration.

  • Run
  • Edit configurations
  • +
  • Set Main class to org.elasticsearch.bootstrap.Bootstrap
  • Set VM options to -Des.foreground=yes

Voila. Credits.

Answer:2

I know how to skip these comments using SKIP declarations, but all I need to do is to take a C source and output the same source without comments. So I declared a token <GENERIC_TEXT: (~[])+ >, ...

Hello I am just download maven binaries and after set all the environment variable, I am running mvn -version cmd and get this Exception. Exception in thread "main" java.lang.IllegalAccessError: ...

I have created a Recyclerview, with itemobjects, Adapter, viewholder and activity. The Recyclerview works fine. My problem is when an item is clicked from Recyclerview, I want to direct the user to ...

I am Using placeholder %1$d in string.xml for int value, and then I want to display % sign in same TextView so it's &#37;. So I've use it like this. <string name="uploadProgress">%1$d&#...