Package org.drools.mvel.expr
Class MVELDebugHandler
- java.lang.Object
-
- org.drools.mvel.expr.MVELDebugHandler
-
public final class MVELDebugHandler extends java.lang.ObjectDebug Handler for MVEL dialect. Takes care of registering breakpoints and calling required methods to trigger eclipse debugger to keep breakpoints in sync etc.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEBUG_LAUNCH_KEYprotected static org.slf4j.Loggerloggerstatic booleanverbose
-
Constructor Summary
Constructors Constructor Description MVELDebugHandler()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static voidclearAllBreakpoints()static booleanisDebugMode()Returns current debug mode.
Holds lazy initialized internal reference to improve performance.
Therefore you can't change System property "mvel.debugger" after isDebugMode is called at least once.
To update debug mode at runtime usesetDebugMode(boolean)static voidreceiveBreakpoints()Notify remote debugger that runtime is ready to get latest breakpoint informationprotected static voidregisterBreakpoint(java.lang.String sourceName, int lineNumber)protected static voidremoveBreakpoint(java.lang.String sourceName, int lineNumber)static voidsetDebugMode(boolean b)Sets debug mode on/off.
Updates local MVELDebugHandler property and System property "mvel.debugger"
There's no need to ever call this method unless you write junit tests!protected static voidsetOnBreakReturn(int value)
-
-
-
Field Detail
-
logger
protected static final transient org.slf4j.Logger logger
-
DEBUG_LAUNCH_KEY
public static final java.lang.String DEBUG_LAUNCH_KEY
- See Also:
- Constant Field Values
-
verbose
public static final boolean verbose
- See Also:
- Constant Field Values
-
-
Method Detail
-
receiveBreakpoints
public static void receiveBreakpoints()
Notify remote debugger that runtime is ready to get latest breakpoint information
-
registerBreakpoint
protected static final void registerBreakpoint(java.lang.String sourceName, int lineNumber)
-
clearAllBreakpoints
protected static final void clearAllBreakpoints()
-
removeBreakpoint
protected static final void removeBreakpoint(java.lang.String sourceName, int lineNumber)
-
setOnBreakReturn
protected static final void setOnBreakReturn(int value)
-
isDebugMode
public static boolean isDebugMode()
Returns current debug mode.
Holds lazy initialized internal reference to improve performance.
Therefore you can't change System property "mvel.debugger" after isDebugMode is called at least once.
To update debug mode at runtime usesetDebugMode(boolean)- Returns:
trueif debug mode is enabled.
-
setDebugMode
public static void setDebugMode(boolean b)
Sets debug mode on/off.
Updates local MVELDebugHandler property and System property "mvel.debugger"
There's no need to ever call this method unless you write junit tests!- Parameters:
b- is Debug enabled?
-
-