softwareCobbler / luceedebug

line debugger for lucee
GNU Lesser General Public License v2.1
45 stars 15 forks source link

how to debug the luceedebug.jar #64

Closed pibica closed 2 months ago

pibica commented 2 months ago

Is it a way to debug in the 'java world' a Lucee / tomcat process that has luceedebug.jar running. As luceejdebug.jar is connected to the jpda port, I'm not able to attach another java debugger. My goal is to understand what happens in the luceebug.jar code when I've an issue with the lucee debugger.

softwareCobbler commented 2 months ago

Unfortunately the approach we've taken does not support "debugging the debugger", because we connect to the single libjdwp connector and hold onto it for the life if the JVM. Hence no other clients can connect to libjdwp. This is the same reason it is not possible to run luceedebug and FusionReactor at the same time.

So, a lot of strategic System.out.println or similar logging.