Karaf has you covered every which way you’d want to debug =) 1. $ export KARAF_DEBUG=true (anytime before you start karaf)
-or- 2. Edit bin/setenv and uncomment KARAF_DEBUG=true -or- 3. Start Karaf using "./bin/karaf debug" (starts Karaf in debug mode) -or- 4. Start Karaf using "./bin/karaf debugs" (starts Karaf in debug mode AND suspends the start until debugger has attached!!) -Matt Pavlovich > On Jan 25, 2021, at 7:23 PM, Erwin Hogeweg <[email protected]> wrote: > > Hi, > > What is the preferred/recommended way to open 5005 for remote connections > under J11? > > Right now I hacked these two lines in …/bin/inc but those are gone every time > I build a new assembly. > > > DEFAULT_JAVA_DEBUG_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:${JAVA_DEBUG_PORT}" > > DEFAULT_JAVA_DEBUGS_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:${JAVA_DEBUG_PORT}" > > Plse advice. > > > Kind Regards, > > Erwin
