I'm novice in both Java and Elasticsearch, but assigned a task to implement an Elasticsearch plugin!
After download the Elasticsearch source code and imported them in IntelliJ, I managed to debug the source code by:
gradle run --debug-jvm
Each time I want to stop debugging, I use Ctrl+C in the cmd windows. But when I try to debug again, the log says:
elasticsearch-5.1.1\distribution\build\cluster\run node0\elasticsearch-5.1.1-SNAPSHOT\data\nodes\0\indices\e9Xy2KDaRsGp_4qWaSJLfQ\0\index\_0.cfs
I have to kill the "Java(TM) Platform SE binary" task in the task manager. After this, run "gradle run --debug-jvm" gives another error:
:distribution:run#checkPrevious
jps -l
12432
11640 org.gradle.launcher.GradleMain
17464 sun.tools.jps.Jps
:distribution:run#checkPrevious FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':distribution:run#checkPrevious'.
> Could not find property 'pidFile' on task ':distribution:run#checkPrevious'.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
I have to run "gradle clean & gradle assemble" to start debugging which will taks several minutes.
Am I wrong at any steps? Is there any method to stop debuggin gracefully?
Thanks very much!