--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/7040261.jTtysX6pI0%40linux.
For more options, visit https://groups.google.com/d/optout.
You can have a look at my docker based development environment for my warnings plugin:It starts the master and agent with open debugger ports so you can debug master and agent code. (There is also a predefined IntelliJ launcher provided to debug the remote applications.)
Am 06.07.2019 um 14:23 schrieb Martin Weber <fifteen...@gmail.com>:
Am Samstag, 6. Juli 2019, 03:28:53 CEST schrieb Boyka Zhu:Hi,
My plugin will run on remote slave, the java source codes which running on
master can be traced, but the codes which runs on slave cannot be traced,
all breakpoints will be skipped.
You need remote debugging.
Start the Java VM that runs the agent node with arguments that allow a
debugger to connect, like this
-agentlib:jdwp=transport=dt_socket,server=y,address=8000
See man java for details.
If you use Eclipse, you would then define a 'Remote Java Application' launch
configuration that connects to the agent node JVM. Just start that
configuration in debug mode and set your breakpoints.
Martin
--
There are only two hard problems in Computer Science: cache invalidation,
naming things, and off-by-one errors.
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkin...@googlegroups.com.
[root@hostname123 boyka]# java -jar -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8765 agent.jar -jnlpUrl http://myjenkinshost:8080/jenkins/computer/hostname123.dev.com/slave-agent.jnlp -workDir "/home/boyka/JenkinsDev"Listening for transport dt_socket at address: 8765Jul 15, 2019 12:52:21 PM org.jenkinsci.remoting.engine.WorkDirManager initializeWorkDirINFO: Using /home/czhu/JenkinsDev/remoting as a remoting work directoryBoth error and output logs will be printed to /home/boyka/JenkinsDev/remotingJul 15, 2019 12:52:22 PM hudson.remoting.jnlp.Main createEngineINFO: Setting up agent: hostname123.dev.comJul 15, 2019 12:52:22 PM hudson.remoting.jnlp.Main$CuiListener <init>INFO: Jenkins agent is running in headless mode.Jul 15, 2019 12:52:22 PM hudson.remoting.Engine startEngineINFO: Using Remoting version: 3.29Jul 15, 2019 12:52:22 PM org.jenkinsci.remoting.engine.WorkDirManager initializeWorkDirINFO: Using /home/boyka/JenkinsDev/remoting as a remoting work directoryJul 15, 2019 12:52:22 PM hudson.remoting.jnlp.Main$CuiListener statusINFO: Locating server among [http://myjenkinshost:8080/jenkins/]Jul 15, 2019 12:52:22 PM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolveINFO: Remoting server accepts the following protocols: [JNLP4-connect, Ping]Jul 15, 2019 12:52:22 PM hudson.remoting.jnlp.Main$CuiListener statusINFO: Agent discovery successful Agent address: myjenkinshost Agent port: 61616 Identity: f7:43:32:43:aa:d1:40:26:29:f2:5d:42:13:b8:bf:eaJul 15, 2019 12:52:22 PM hudson.remoting.jnlp.Main$CuiListener statusINFO: HandshakingJul 15, 2019 12:52:22 PM hudson.remoting.jnlp.Main$CuiListener statusINFO: Connecting to dln-l-cz01:61616Jul 15, 2019 12:52:22 PM hudson.remoting.jnlp.Main$CuiListener statusINFO: Trying protocol: JNLP4-connectJul 15, 2019 12:52:22 PM hudson.remoting.jnlp.Main$CuiListener statusINFO: Remote identity confirmed: f7:43:32:43:aa:d1:40:26:29:f2:5d:42:13:b8:bf:eaJul 15, 2019 12:52:23 PM hudson.remoting.jnlp.Main$CuiListener statusINFO: Connected--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/799464cf-c4e3-45b5-8fb8-67f3ff7afa00%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkin...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/a2e306a2-5cb1-4dcd-aed7-abfe63aa279e%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkin...@googlegroups.com.