Turn off debug support by default.

This commit is contained in:
James Roseborough
2007-10-10 04:34:46 +00:00
parent 710f13dafc
commit a5745d5da0
2 changed files with 5 additions and 3 deletions

View File

@@ -120,7 +120,8 @@ public class DebugStackState extends StackState implements DebugRequestListener
// debug hooks
public void debugHooks( int pc ) {
DebugUtils.println("entered debugHook...");
if(DebugUtils.IS_DEBUG)
DebugUtils.println("entered debugHook...");
if ( exiting )
throw new AbortException("exiting");
@@ -129,7 +130,8 @@ public class DebugStackState extends StackState implements DebugRequestListener
// anytime the line doesn't change we keep going
int line = getLineNumber(calls[cc]);
DebugUtils.println("debugHook - executing line: " + line);
if(DebugUtils.IS_DEBUG)
DebugUtils.println("debugHook - executing line: " + line);
if ( !stepping && lastline == line ) {
return;
}

View File

@@ -27,7 +27,7 @@ import lua.io.LoadState;
import lua.value.LString;
public class DebugUtils {
public static final boolean IS_DEBUG = true;
public static final boolean IS_DEBUG = false;
public static void println(String message) {
if (IS_DEBUG) {