You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Achim Nierbeck <bc...@googlemail.com> on 2014/12/19 16:41:42 UTC

Re: Java Debug options are Pre Java 5.0. Why?

Yes please,
open an issue for this.

Regards, Achim

2014-12-19 16:38 GMT+01:00 Paul Spencer <pa...@apache.org>:
>
> When debugging I noticed the debugger option are Pre Java 5.0.  Since
> Karaf requires Java 7 or greater, why are the old debug options used?
> I was expecting DEFAULT_JAVA_DEBUG_OPTS =
> “-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005”
>
> > sparrow:bin paul$ grep DEFAULT_JAVA_DEBUG_OPTS= *
> > instance:    DEFAULT_JAVA_DEBUG_OPTS="-Xdebug -Xnoagent
> -Djava.compiler=NONE
> -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"
> > instance:    #DEFAULT_JAVA_DEBUG_OPTS="-Xrunyjpagent"
> > instance.bat:set DEFAULT_JAVA_DEBUG_OPTS=-Xdebug -Xnoagent
> -Djava.compiler=NONE
> -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005
> > karaf:    DEFAULT_JAVA_DEBUG_OPTS="-Xdebug -Xnoagent
> -Djava.compiler=NONE
> -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"
> > karaf:    #DEFAULT_JAVA_DEBUG_OPTS="-Xrunyjpagent"
> > karaf.bat:set DEFAULT_JAVA_DEBUG_OPTS=-Xdebug -Xnoagent
> -Djava.compiler=NONE
> -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
> > shell:    DEFAULT_JAVA_DEBUG_OPTS="-Xdebug -Xnoagent
> -Djava.compiler=NONE
> -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"
> > shell:    #DEFAULT_JAVA_DEBUG_OPTS="-Xrunyjpagent"
> > shell.bat:set DEFAULT_JAVA_DEBUG_OPTS=-Xdebug -Xnoagent
> -Djava.compiler=NONE
> -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005
> >
>
>
> Also, can the port number, 5005 in this case, be a variable.
>
>    DEFAULT_JAVA_DEBUG = “5005"
>    if [ "x$JAVA_DEBUG_PORT" = "x" ]; then
>      JAVA_DEBUG_PORT="$DEFAULT_JAVA_DEBUG_PORT"
>    fi
>
>    DEFAULT_JAVA_DEBUG_OPTS =
> “-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=$JAVA_DEBUG_PORT”
>
> Should I create an Jira issue for this request?
>
> Paul Spencer
>
>

-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master