From 45819b366e712c510af1f01ac874e53466c0515a Mon Sep 17 00:00:00 2001 From: David Kocher Date: Tue, 26 Nov 2024 14:51:28 +0100 Subject: [PATCH] Update debug help. --- README.md | 4 +--- cli/osx/build.xml | 2 +- osx/build.xml | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 1789e27841a..56ef9ad545b 100644 --- a/README.md +++ b/README.md @@ -139,9 +139,7 @@ You will run into warnings from `MSBuild`/`WiX` that are unrelated to how Cyberd ### macOS -Edit `setup/app/Info.plist` if you want to debug _Cyberduck.app_ or `setup/pkg/Info.plist` if you want to -debug`duck` respectively. Add `-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005` in `VMOptions` to -allow to connect to the running application in your IDE by attaching to the remote JVM. +Build with `-Pdebug` to allow attaching the remote debugger on port `5005`. ### Windows diff --git a/cli/osx/build.xml b/cli/osx/build.xml index ea01975fba0..a29067cadd7 100644 --- a/cli/osx/build.xml +++ b/cli/osx/build.xml @@ -26,7 +26,7 @@ value="-client --add-opens=java.base/sun.security.ssl=ALL-UNNAMED --add-opens=java.base/sun.security.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED -Djava.library.path=$APP_PACKAGE/Contents/Frameworks -Djna.boot.library.path=$APP_PACKAGE/Contents/Frameworks -Djna.library.path=$APP_PACKAGE/Contents/Frameworks -Djna.nounpack=true -Djava.awt.headless=true -Dsun.jnu.encoding=utf-8 -Dfile.encoding=utf-8 -Dsun.io.useCanonCaches=false -DLog4jContextSelector=org.apache.logging.log4j.core.selector.BasicContextSelector -XX:+UseG1GC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:+UseStringDeduplication"/> + value="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005 "> diff --git a/osx/build.xml b/osx/build.xml index 8139e8f85d8..bc1f267d435 100644 --- a/osx/build.xml +++ b/osx/build.xml @@ -34,7 +34,7 @@ value="-client --add-opens=java.base/sun.security.ssl=ALL-UNNAMED --add-opens=java.base/sun.security.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED -Djava.library.path=$APP_PACKAGE/Contents/Frameworks -Djna.boot.library.path=$APP_PACKAGE/Contents/Frameworks -Djna.library.path=$APP_PACKAGE/Contents/Frameworks -Djna.nounpack=true -Djava.awt.headless=true -Dsun.jnu.encoding=utf-8 -Dfile.encoding=utf-8 -Dsun.io.useCanonCaches=false -DLog4jContextSelector=org.apache.logging.log4j.core.selector.BasicContextSelector -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=compact -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:+UseStringDeduplication"/> + value="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005 ">