Except that wouldn't work with random ports.. Eirik.
On Fri, Nov 25, 2016 at 1:37 PM, Eirik Bjørsnøs <eir...@gmail.com> wrote: > > > Stéphane, > > Could you inspect the JVM command line and parse the debugging agent > options? > > Eirik. > > On Fri, Nov 25, 2016 at 1:11 PM, Stéphane Nicoll <snic...@pivotal.io> > wrote: > >> On Fri, Nov 25, 2016 at 3:14 AM, Alan Bateman <alan.bate...@oracle.com> >> wrote: >> >> > On 24/11/2016 14:22, Stéphane Nicoll wrote: >> > >> > : >> >> >> >> We use "sun.misc.VMSupport" to retrieve the port being used by the Java >> >> remote debugging. You can find the actual code in >> >> RemoteDebugPortProvider[3] >> >> >> >> This class was never intended to be used directly of course. It doesn't >> > exist (or rather it has moved) in JDK 9. Are you grabbing the port so >> that >> > it can be published for debuggers to attach? Have you considered >> publishing >> > the pid instead - that would allow debuggers to use the >> > ProcessAttachingConnector to attach. >> >> >> Yes, there is a feature in Spring Boot called devtools that allows you do >> remote debugging via SSH[1] - Is there any way to achieve the same feature >> with JDK 9? >> >> Thanks, >> S. >> >> [1] >> http://docs.spring.io/spring-boot/docs/current/reference/htm >> lsingle/#using-boot-devtools-remote-debugtunnel >> >> >> > >> > >> > -Alan >> > >> > >