Skip to content

Commit 5e77946

Browse files
committed
LDEV-1402 remove unused DEBUGGER_ENABLED
1 parent d925bf6 commit 5e77946

File tree

5 files changed

+5
-10
lines changed

5 files changed

+5
-10
lines changed

core/src/main/java/lucee/runtime/config/ConfigImpl.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -181,22 +181,17 @@ public abstract class ConfigImpl extends ConfigBase implements ConfigPro {
181181

182182
// DAP secret - required to register a debugger listener. If not set, DAP debugger is disabled.
183183
public static final String DEBUGGER_SECRET;
184-
// DAP enabled if secret is set (non-empty) - enables listener registration and console capture
185-
public static final boolean DEBUGGER_ENABLED;
186184
// DAP debugger active - controls bytecode instrumentation for stepping/breakpoints (default true when secret set)
187185
public static final boolean DEBUGGER;
188186
static {
189187
String secret = SystemUtil.getSystemPropOrEnvVar("lucee.dap.secret", null);
190188
if (secret != null && !secret.trim().isEmpty()) {
191189
DEBUGGER_SECRET = secret.trim();
192-
DEBUGGER_ENABLED = true;
193190
// Breakpoint support defaults to true, can be disabled for console-only mode
194-
String bp = SystemUtil.getSystemPropOrEnvVar("lucee.dap.breakpoint", "true");
195-
DEBUGGER = "true".equalsIgnoreCase(bp.trim());
191+
DEBUGGER = Caster.toBooleanValue(SystemUtil.getSystemPropOrEnvVar("lucee.dap.breakpoint", null), true);
196192
}
197193
else {
198194
DEBUGGER_SECRET = null;
199-
DEBUGGER_ENABLED = false;
200195
DEBUGGER = false;
201196
}
202197
}

core/src/main/java/lucee/runtime/debug/DebuggerListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ default boolean onException(PageContext pc, Throwable exception, boolean caught)
7575

7676
/**
7777
* Called when output is written to System.out or System.err.
78-
* Only called when DEBUGGER_ENABLED and a DebuggerPrintStream is installed.
78+
* Only called when a DebuggerPrintStream is installed.
7979
*
8080
* @param text The text that was written
8181
* @param isStdErr true if written to stderr, false if stdout

core/src/main/java/lucee/runtime/debug/DebuggerPrintStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
/**
66
* PrintStream wrapper that tees output to the DebuggerListener.
7-
* Installed on System.out/err when DEBUGGER_ENABLED is true.
7+
* Installed on System.out/err when DEBUGGER_SECRET is set.
88
* Always passes through to the original stream; only notifies listener when active.
99
*/
1010
public class DebuggerPrintStream extends PrintStream {

loader/build.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<project default="core" basedir="." name="Lucee"
33
xmlns:resolver="antlib:org.apache.maven.resolver.ant">
44

5-
<property name="version" value="7.1.0.45-SNAPSHOT"/>
5+
<property name="version" value="7.1.0.46-SNAPSHOT"/>
66

77
<taskdef uri="antlib:org.apache.maven.resolver.ant" resource="org/apache/maven/resolver/ant/antlib.xml">
88
<classpath>

loader/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<groupId>org.lucee</groupId>
55
<artifactId>lucee</artifactId>
6-
<version>7.1.0.45-SNAPSHOT</version>
6+
<version>7.1.0.46-SNAPSHOT</version>
77
<packaging>jar</packaging>
88

99
<name>Lucee Loader Build</name>

0 commit comments

Comments
 (0)