Hey - Need some luceedebug config help. Running la...
# lucee
a
Hey - Need some luceedebug config help. Running latest commandbox with lucee 5.3.10 on windows; jdk 11.0.18; IIS and boncode. Site itself runs fine w/o luceedebug. I am probably misunderstanding the config. is debughost and debugport (mentioned here - https://github.com/softwareCobbler/luceedebug#vs-code-extension-configuration) the host and port of the site you are debugging, or some special port that the debug process needs? when i add the jvm args (with a correct path to the luceedebug.jar) per the luceedebug docs, commandbox won't start. I get the error below. any pointers would be awesome? @jamiejackson thanks!
Copy code
[INFO ] Runwar: Creating deployment [default] in C:\Source\X
[INFO ] [luceedebug] Loaded luceedebug.coreinject.DebugManager@3b9632d1 with ClassLoader 'lucee.core [49]'
[INFO ] [luceedebug] attempting jdwp self connect to jdwp on 127.0.0.1:9999...
[ERROR] java.lang.NoClassDefFoundError: com/sun/jdi/Bootstrap
[ERROR]         at luceedebug.coreinject.DebugManager.getConnector(DebugManager.java:74)
[ERROR]         at luceedebug.coreinject.DebugManager.jdwpSelfConnect(DebugManager.java:87)
[ERROR]         at luceedebug.coreinject.DebugManager.spawnWorker(DebugManager.java:60)
[ERROR]         at luceedebug.LuceeTransformer.transform(LuceeTransformer.java:108)
[ERROR]         at java.instrument/java.lang.instrument.ClassFileTransformer.transform(Unknown Source)
[ERROR]         at java.instrument/sun.instrument.TransformerManager.transform(Unknown Source).....
b
@Anders Lars I would put an issue on the project in Gtihub so the author can help you.
That said, you're issue is likely related to sun classes removed in later Java versions
Does it work on Java 8?
Actually, a quick Google shows that class used to be part of tools.jar. Have you tried using a JDK instead of a JRE?
You can start your server like so
Copy code
server start javaVersion=openjdk11_jdk
a
thanks Brad!! Yes -i had switched to JDK 11 based on that error bc it did not work on java 8, but it didn't fix. But .. your solution
Copy code
server start javaVersion=openjdk11_jdk
was money. and yeah - I assumed it was the fact that my java knowledge is minimal.. hence I didn't raise a ticket on github. [is this an issue the author would care about - that i should raise?] So I am debugging now. It looks pretty decent local debugger. Won't replace my FR debug usage on my test server, bc that is great, but for local dev.. pretty happy. thanks again!
🎉 2
FWIW - i solved an issue that had taken me a day - in like 15 minutes with this - so just wanna add a huge thanks to @David Rogers and Jamie ..... and Brad (who is nothing to do with luceedebug - but still makes my life easier on a regular basis)
👍 1
d
super cool community effort! glad to hear it was useful.
j
That's awesome, @Anders Lars! We share an appreciation for the efforts of these two guys.
a
Like you, Jamie, I got my team using it stat. It actually far exceeded my expectations.
😃 1
c
This thread is a gold nugget