Turn off debug support by default.
This commit is contained in:
@@ -120,6 +120,7 @@ public class DebugStackState extends StackState implements DebugRequestListener
|
|||||||
|
|
||||||
// debug hooks
|
// debug hooks
|
||||||
public void debugHooks( int pc ) {
|
public void debugHooks( int pc ) {
|
||||||
|
if(DebugUtils.IS_DEBUG)
|
||||||
DebugUtils.println("entered debugHook...");
|
DebugUtils.println("entered debugHook...");
|
||||||
|
|
||||||
if ( exiting )
|
if ( exiting )
|
||||||
@@ -129,6 +130,7 @@ public class DebugStackState extends StackState implements DebugRequestListener
|
|||||||
|
|
||||||
// anytime the line doesn't change we keep going
|
// anytime the line doesn't change we keep going
|
||||||
int line = getLineNumber(calls[cc]);
|
int line = getLineNumber(calls[cc]);
|
||||||
|
if(DebugUtils.IS_DEBUG)
|
||||||
DebugUtils.println("debugHook - executing line: " + line);
|
DebugUtils.println("debugHook - executing line: " + line);
|
||||||
if ( !stepping && lastline == line ) {
|
if ( !stepping && lastline == line ) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ import lua.io.LoadState;
|
|||||||
import lua.value.LString;
|
import lua.value.LString;
|
||||||
|
|
||||||
public class DebugUtils {
|
public class DebugUtils {
|
||||||
public static final boolean IS_DEBUG = true;
|
public static final boolean IS_DEBUG = false;
|
||||||
|
|
||||||
public static void println(String message) {
|
public static void println(String message) {
|
||||||
if (IS_DEBUG) {
|
if (IS_DEBUG) {
|
||||||
|
|||||||
Reference in New Issue
Block a user