Skip to content

Instantly share code, notes, and snippets.

@jamiejackson
Last active April 13, 2019 19:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamiejackson/3a2719dcdcd908a367871f40a7e1ae60 to your computer and use it in GitHub Desktop.
Save jamiejackson/3a2719dcdcd908a367871f40a7e1ae60 to your computer and use it in GitHub Desktop.
Hacking & Step-Debugging Lucee Server
mkdir lucee_workspace
cd lucee_workspace
git clone https://github.com/lucee/debug.git
git clone https://github.com/lucee/Lucee.git

In Eclipse, import the following directories as projects:

  • lucee_workspace/debug (Lucee Debug project)
  • lucee_workspace/Lucee/core (core project)
  • lucee_workspace/Lucee/loader (loader project)

Add an app (e.g., an Application.cfc and an index.cfm to lucee_workspace/debug/web/

Application.cfc:

component {
  this.name = "debugapp";
}

index.cfm:

<cfscript>#now()#</cfscript>

Set breakpoints in code.

In Lucee Debug project: Right click src/main/RunAsJavaApplication.java and "Debug As > Java Application"

Access the app at http://localhost:8080/index.cfm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment