Readded the debug port to the driver and added a log entry for the debug port.

This commit is contained in:
Clinton Alexander 2017-04-04 10:28:18 +01:00
parent 352da7e4c7
commit 6768a83232
2 changed files with 5 additions and 0 deletions
node/src/main/kotlin/net/corda/node

@ -118,6 +118,10 @@ fun main(args: Array<String>) {
log.info("VM ${info.vmName} ${info.vmVendor} ${info.vmVersion}")
log.info("Machine: ${InetAddress.getLocalHost().hostName}")
log.info("Working Directory: ${cmdlineOptions.baseDirectory}")
val agentProperties = sun.misc.VMSupport.getAgentProperties()
if(agentProperties.containsKey("sun.jdwp.listenerAddress")) {
log.info("Debug port: ${agentProperties.getProperty("sun.jdwp.listenerAddress")}")
}
log.info("Starting as node on ${conf.p2pAddress}")
try {

@ -576,6 +576,7 @@ class DriverDSL(
"--logging-level=$loggingLevel",
"--no-local-shell"
),
jdwpPort = debugPort,
extraJvmArguments = extraJvmArguments,
errorLogPath = nodeConf.baseDirectory / LOGS_DIRECTORY_NAME / "error.log",
workingDirectory = nodeConf.baseDirectory