You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2020/08/31 08:07:13 UTC

[karaf] branch karaf-4.2.x updated: Improve documentation about debugs

This is an automated email from the ASF dual-hosted git repository.

jbonofre pushed a commit to branch karaf-4.2.x
in repository https://gitbox.apache.org/repos/asf/karaf.git


The following commit(s) were added to refs/heads/karaf-4.2.x by this push:
     new 0505f59  Improve documentation about debugs
0505f59 is described below

commit 0505f59d894519da49002e6cef0ddd778a3fa2f1
Author: jbonofre <jb...@apache.org>
AuthorDate: Mon Aug 31 10:06:42 2020 +0200

    Improve documentation about debugs
---
 manual/src/main/asciidoc/developer-guide/debugging.adoc | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/manual/src/main/asciidoc/developer-guide/debugging.adoc b/manual/src/main/asciidoc/developer-guide/debugging.adoc
index 926e9d4..c5e4fba 100644
--- a/manual/src/main/asciidoc/developer-guide/debugging.adoc
+++ b/manual/src/main/asciidoc/developer-guide/debugging.adoc
@@ -85,20 +85,21 @@ bin\karaf.bat
 
 Last, inside your IDE, connect to the remote application (the default port to connect to is 5005).
 
-This option works fine when it is needed to debug a project deployed on top of Apache Karaf. Nervertheless, you will be blocked
-if you would like to debug the Karaf server itself. In this case, you can change the following parameter suspend=y in the
-karaf.bat script file. That will cause the JVM to pause just before running main() until you attach a debugger then it
+This option works fine when it is needed to debug a project deployed on top of Apache Karaf. Nevertheless, you will be blocked
+if you would like to debug the Karaf server itself.
+
+In this case, you can use `debugs` option (s as syspend). That will cause the JVM to pause just before running main() until you attach a debugger then it
 will resume the execution.  This way you can set your breakpoints anywhere in the code and you should hit them no matter
 how early in the startup they are.
 
 ----
-export DEFAULT_JAVA_DEBUG_OPTS='-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005'
+bin/karaf debugs
 ----
 
 and on Windows,
 
 ----
-set DEFAULT_JAVA_DEBUG_OPTS='-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005'
+bin\karaf.bat debugs
 ----
 
 ===== Debugging Environment Variables