summaryrefslogtreecommitdiff
path: root/TESTING.asciidoc
diff options
context:
space:
mode:
authorDavid Pilato <david@pilato.fr>2017-01-16 10:26:12 +0100
committerDavid Pilato <david@pilato.fr>2017-01-16 10:26:12 +0100
commit4019cbb2222d7026b88540ee63917e4d968a42a9 (patch)
tree50a2d3a568e67409a11302ad483cfd10d750a8d5 /TESTING.asciidoc
parent812f6e30f577ae1fae8b4d6a356653b8eac110aa (diff)
Update doc after review
Diffstat (limited to 'TESTING.asciidoc')
-rw-r--r--TESTING.asciidoc14
1 files changed, 4 insertions, 10 deletions
diff --git a/TESTING.asciidoc b/TESTING.asciidoc
index 83fe27a963..a1a01a8f23 100644
--- a/TESTING.asciidoc
+++ b/TESTING.asciidoc
@@ -485,20 +485,14 @@ gradle run --debug-jvm
== Debugging remotely from an IDE
-If you want to run elasticsearch and be able to remotely attach the process
-for debugging purposes from your IDE, you need to add the following line in
-`config/jvm.options`:
+If you want to run Elasticsearch and be able to remotely attach the process
+for debugging purposes from your IDE, can start Elasticsearch using `ES_JAVA_OPTS`:
---------------------------------------------------------------------------
--Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=4000,suspend=n
+ES_JAVA_OPTS="-Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=4000,suspend=y" ./bin/elasticsearch
---------------------------------------------------------------------------
-Then start elasticsearch with `bin/elasticsearch` as usual.
-
-If you are using IntelliJ, create a new Run/Debug configuration, choose `Remote`
-and define the same port you defined in `config/jvm.options`. Then start the
-remote debug session from IntelliJ.
-
+Read your IDE documentation for how to attach a debugger to a JVM process.
== Building with extra plugins
Additional plugins may be built alongside elasticsearch, where their