Open jamiejackson opened 1 year ago
Solved. It was another CommandBox learning opportunity. :-/
Turns out javaVersion
defaults to a JRE, unless you explicitly append _jdk
.
{
"name":"lucee@5.3.10.97",
"jvm":{
"args":[
"-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=localhost:9999",
"-javaagent:C:/Users/jamie/projects/luceedebug/luceedebug/build/libs/luceedebug.jar=jdwpHost=localhost,jdwpPort=9999,debugHost=0.0.0.0,debugPort=10000,jarPath=C:/Users/jamie/projects/luceedebug/luceedebug/build/libs/luceedebug.jar"
],
"javaVersion":"openjdk11_jdk"
},
"app":{
"cfengine":"lucee@5.3.10.97"
}
}
I posted more information here: https://github.com/softwareCobbler/luceedebug/issues/23#issuecomment-1368117021
My takeaway is that it could be good idea to have a CommandBox and/or docker example since I didn't find it straightforward.
I can work on that if you're game.
Did anything ever come of this, @jamiejackson? I'd think a large percent of the luceedebug audience would ALWAYS welcome any more info on using it with Commandbox. :-)
With CommandBox 6 (Mac/Docker), I had to:
"javaVersion": "openjdk11_jdk"
server.json
option didn't work.
# Following command since update-alternatives for openjdk-11 install uses this directory
RUN mkdir -p /usr/share/man/man1
RUN apt-get update -y && \ apt-get install -y openjdk-11-jdk ca-certificates-java && \ rm -rf /var/lib/apt/lists/*
2. Then, for server.json:
"jvm":{ "heapSize":512, "minHeapSize":256, "javaHome":"/usr/lib/jvm/java-11-openjdk-arm64", "args":[ "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=localhost:9999", "-javaagent:/app/debug/luceedebug.jar=jdwpHost=localhost,jdwpPort=9999,debugHost=0.0.0.0,debugPort=10000,jarPath=/app/debug/luceedebug.jar" ] }
3. Celebration!
Hope this helps someone! Thank you for developing luceedebug - I think it will be quite helpful to our team! Let us know how we can contribute to your efforts.
I thought I'd look into the path translation problem on Windows but I fell into a bunch of rabbit holes.
I've been toying with the idea of having a working commandbox and/or docker example that people could try so I tried spinning things up in commandbox, but first, there was a learning curve to commandbox, and finally and I wasn't able to run it.
Any ideas?
server run
gave the following: