You can have a look at my docker based development environment for my warnings plugin: https://github.com/uhafner/warnings-ng-plugin-devenv <https://github.com/uhafner/warnings-ng-plugin-devenv>
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 <[email protected]>: > > 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. -- 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/E07CDD03-FB96-4A89-BB75-A3C32E899799%40gmail.com. For more options, visit https://groups.google.com/d/optout.
