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:
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!