Class DebugState


  • public final class DebugState
    extends Object
    Immutable snapshot of an interpreter's position, call stack and frame contents at one moment.
    • Method Detail

      • getCurrentMethod

        public String getCurrentMethod()
        Returns:
        the current method
      • getCurrentPC

        public int getCurrentPC()
        Returns:
        the current PC
      • getCurrentLine

        public int getCurrentLine()
        Returns:
        the current line
      • getCallDepth

        public int getCallDepth()
        Returns:
        the call depth
      • getInstructionCount

        public long getInstructionCount()
        Returns:
        the instruction count
      • getHitBreakpoint

        public Breakpoint getHitBreakpoint()
        Returns:
        the hit breakpoint
      • getOperandStack

        public StackSnapshot getOperandStack()
        Returns:
        the operand stack
      • isPaused

        public boolean isPaused()
        Returns:
        true if the status is PAUSED
      • isRunning

        public boolean isRunning()
        Returns:
        true if the status is RUNNING or STEPPING
      • isFinished

        public boolean isFinished()
        Returns:
        true if the status is COMPLETED, EXCEPTION or ABORTED
      • isAtBreakpoint

        public boolean isAtBreakpoint()
        Returns:
        true if a breakpoint was recorded as hit