Thanks for the updates. I tried below to launch the jar. [root@hostname123 tmp]# java -jar -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8765 TESTPLUGIN.jar Listening for transport dt_socket at address: 8765 no main manifest attribute, in TESTPLUGIN.jar [root@hostname123 tmp]#
Is it possible to set the main class for Jenkins plugin entension point class? or just some changes in pom.xml. Thanks. 在 2019年7月6日星期六 UTC+8下午8:23:37,Martin Weber写道: > > 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/10addb49-5b7c-42d0-a95e-8d6c46453ec8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
