Skip to content

Commit

Permalink
Fix dereferencing port to follow changes in config
Browse files Browse the repository at this point in the history
  • Loading branch information
pzygielo committed May 16, 2024
1 parent e4af246 commit b49e509
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ private List<String> getDebugOptionsFromDomainXMLJavaConfig() {

/**
*
* look for an option of this form: <code>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=9009</code> and
* look for an option of this form: <code>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:9009</code> and
* extract the suspend and port values.
*
*/
Expand All @@ -604,7 +604,7 @@ private void parseJavaConfigDebugOptions() {
for (String attribute : attributes) {
if (attribute.startsWith("address=")) {
try {
debugPort = Integer.parseInt(attribute.substring(8));
debugPort = Integer.parseInt(attribute.substring(10));
} catch (NumberFormatException ex) {
debugPort = -1;
}
Expand Down

0 comments on commit b49e509

Please sign in to comment.