softwareCobbler / luceedebug

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

use lucee light? #1

Open zspitzer opened 1 year ago

zspitzer commented 1 year ago

awesome project!

I noticed you have included the fat jar (i.e with all the extensions bundled), i I don't know if you need all the extensions for this to work, if not you could try using lucee light?

softwareCobbler commented 1 year ago

They are part of the project, but it's a compile-time only dependency, so it's not included in the final output. The resulting jar shouldn't have any references to lucee.jar or etc. It'll just use whatever the runtime ends up having.

The only reason it's a compile time dependency is to support uttering the name PageContextImpl:

// called when we push a cf frame onto debug stack, need to know about frame name
final PageContextImpl pageContextImpl = (PageContextImpl)pageContext;
final Collection.Key key = pageContextImpl.getActiveUDFCalledName();

I think all other lucee types referenced come from the lucee loader package, which also requires a compile time dependency (but maybe not on the entire jar, just the loader jar if that's a thing?)

I've been dogfooding it at work against a copy of lucee light, seems to work ("on my machine", heh...)