Skip to content

Commit

Permalink
LDEV-3427 restore removed debugging support
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Dec 18, 2024
1 parent 79038e6 commit b08ef2d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions core/src/main/java/lucee/runtime/PageContextImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -2037,6 +2037,16 @@ public Object getFunction(Object coll, String key, Object[] args) throws PageExc

@Override
public Object getFunction(Object coll, Key key, Object[] args) throws PageException {
if (config.hasDebugOptions(ConfigPro.DEBUG_TEMPLATE) && !gatewayContext) {
DebugEntryTemplate debugEntry = debugger.getEntry(this, getCurrentTemplatePageSource(), key.toString());
long currTime = getExecutionTime();
long time = System.nanoTime();
Object result = variableUtil.callFunctionWithoutNamedValues(this, coll, key, args);
long diff = ((System.nanoTime() - time) - (getExecutionTime() - currTime));
setExecutionTime(getExecutionTime() + diff);
debugEntry.updateExeTime(diff);
return result;
}
return variableUtil.callFunctionWithoutNamedValues(this, coll, key, args);
}

Expand Down
2 changes: 1 addition & 1 deletion loader/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<project default="core" basedir="." name="Lucee"
xmlns:resolver="antlib:org.apache.maven.resolver.ant">

<property name="version" value="6.2.0.229-SNAPSHOT"/>
<property name="version" value="6.2.0.230-SNAPSHOT"/>

<taskdef uri="antlib:org.apache.maven.resolver.ant" resource="org/apache/maven/resolver/ant/antlib.xml">
<classpath>
Expand Down
2 changes: 1 addition & 1 deletion loader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<groupId>org.lucee</groupId>
<artifactId>lucee</artifactId>
<version>6.2.0.229-SNAPSHOT</version>
<version>6.2.0.230-SNAPSHOT</version>
<packaging>jar</packaging>

<name>Lucee Loader Build</name>
Expand Down

0 comments on commit b08ef2d

Please sign in to comment.