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 [email protected]. 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.
