mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-27 17:10:22 -04:00
Change Debug Elasticsearch
and debug-jvm
order in TESTING.asciidoc (#127801)
This commit is contained in:
parent
cd1fa77990
commit
3b0ef09e5b
1 changed files with 8 additions and 8 deletions
|
@ -46,14 +46,8 @@ run it using Gradle:
|
||||||
==== Launching and debugging from an IDE
|
==== Launching and debugging from an IDE
|
||||||
|
|
||||||
If you want to run and debug Elasticsearch from your IDE, the `./gradlew run` task
|
If you want to run and debug Elasticsearch from your IDE, the `./gradlew run` task
|
||||||
supports a remote debugging option. Run the following from your terminal:
|
supports a remote debugging option. Start the "Debug Elasticsearch" run configuration in IntelliJ. This will enable the
|
||||||
|
IDE to connect to the process and allow debug functionality.
|
||||||
---------------------------------------------------------------------------
|
|
||||||
./gradlew run --debug-jvm
|
|
||||||
---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
Next start the "Debug Elasticsearch" run configuration in IntelliJ. This will enable the IDE to connect to the process and allow debug functionality.
|
|
||||||
|
|
||||||
|
|
||||||
As such the IDE needs to be instructed to listen for connections on the debug port.
|
As such the IDE needs to be instructed to listen for connections on the debug port.
|
||||||
Since we might run multiple JVMs as part of configuring and starting the cluster it's
|
Since we might run multiple JVMs as part of configuring and starting the cluster it's
|
||||||
|
@ -64,6 +58,12 @@ NOTE: If you have imported the project into IntelliJ according to the instructio
|
||||||
link:/CONTRIBUTING.md#importing-the-project-into-intellij-idea[CONTRIBUTING.md] then a debug run configuration
|
link:/CONTRIBUTING.md#importing-the-project-into-intellij-idea[CONTRIBUTING.md] then a debug run configuration
|
||||||
named "Debug Elasticsearch" will be created for you and configured appropriately.
|
named "Debug Elasticsearch" will be created for you and configured appropriately.
|
||||||
|
|
||||||
|
Next run the following from your terminal:
|
||||||
|
|
||||||
|
---------------------------------------------------------------------------
|
||||||
|
./gradlew run --debug-jvm
|
||||||
|
---------------------------------------------------------------------------
|
||||||
|
|
||||||
===== Debugging the CLI launcher
|
===== Debugging the CLI launcher
|
||||||
|
|
||||||
The gradle task does not start the Elasticsearch server process directly; like in the Elasticsearch distribution,
|
The gradle task does not start the Elasticsearch server process directly; like in the Elasticsearch distribution,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue