Skip to content

Commit

Permalink
Update debug help.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed Nov 26, 2024
1 parent d691ea2 commit 45819b3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion cli/osx/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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"/>

<condition property="jvm.runtime.debug"
value="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:6005 ">
value="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005 ">
<equals arg1="${configuration}" arg2="debug"/>
</condition>

Expand Down
2 changes: 1 addition & 1 deletion osx/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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"/>

<condition property="jvm.runtime.debug"
value="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:6005 ">
value="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005 ">
<equals arg1="${configuration}" arg2="debug"/>
</condition>

Expand Down

0 comments on commit 45819b3

Please sign in to comment.