From 4019cbb2222d7026b88540ee63917e4d968a42a9 Mon Sep 17 00:00:00 2001 From: David Pilato Date: Mon, 16 Jan 2017 10:26:12 +0100 Subject: Update doc after review --- TESTING.asciidoc | 14 ++++---------- 1 file 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 -- cgit v1.2.3