mirror of
https://github.com/corda/corda.git
synced 2024-12-19 04:57:58 +00:00
Merge pull request #500 from corda/clint-driverdebugportfix
Readded the debug port to the driver
This commit is contained in:
commit
09e7d89e4e
@ -118,6 +118,10 @@ fun main(args: Array<String>) {
|
|||||||
log.info("VM ${info.vmName} ${info.vmVendor} ${info.vmVersion}")
|
log.info("VM ${info.vmName} ${info.vmVendor} ${info.vmVersion}")
|
||||||
log.info("Machine: ${InetAddress.getLocalHost().hostName}")
|
log.info("Machine: ${InetAddress.getLocalHost().hostName}")
|
||||||
log.info("Working Directory: ${cmdlineOptions.baseDirectory}")
|
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}")
|
log.info("Starting as node on ${conf.p2pAddress}")
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -576,6 +576,7 @@ class DriverDSL(
|
|||||||
"--logging-level=$loggingLevel",
|
"--logging-level=$loggingLevel",
|
||||||
"--no-local-shell"
|
"--no-local-shell"
|
||||||
),
|
),
|
||||||
|
jdwpPort = debugPort,
|
||||||
extraJvmArguments = extraJvmArguments,
|
extraJvmArguments = extraJvmArguments,
|
||||||
errorLogPath = nodeConf.baseDirectory / LOGS_DIRECTORY_NAME / "error.log",
|
errorLogPath = nodeConf.baseDirectory / LOGS_DIRECTORY_NAME / "error.log",
|
||||||
workingDirectory = nodeConf.baseDirectory
|
workingDirectory = nodeConf.baseDirectory
|
||||||
|
Loading…
Reference in New Issue
Block a user