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