Skip to content

Commit

Permalink
This is a demo, so allow remote connections for debugging VM
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Mar 8, 2023
1 parent 117782b commit ca176da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions demo/jline-gogo.bat
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ set "logconf=%DIRNAME%etc\logging.properties"
goto :RUN_LOOP

:EXECUTE_DEBUG
set "opts=%opts% -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005"
set "opts=%opts% -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005"
shift
goto :RUN_LOOP

:EXECUTE_DEBUGS
set "opts=%opts% -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005"
set "opts=%opts% -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005"
shift
goto :RUN_LOOP

Expand Down
4 changes: 2 additions & 2 deletions demo/jline-gogo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ logconf="${DIRNAME}/etc/logging.properties"
while [ "${1}" != "" ]; do
case ${1} in
'debug')
opts="${opts} -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005"
opts="${opts} -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005"
shift
;;
'debugs')
opts="${opts} -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005"
opts="${opts} -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005"
shift
;;
'jansi')
Expand Down

0 comments on commit ca176da

Please sign in to comment.