# com.bea.ide.debug
DebugSvc.IDebugListener Interface

public static interface DebugSvc.IDebugListener

The listener interface that can be passed to `DebugSvc.I.addDebugListener` or `DebugSvc.I.removeDebugListener` to listen to debug state changes.

Enclosing class
  `DebugSvc`

## Field Summary

`public static final int` | `RESUME_CONTINUE` a constant passed to `onResume` to denote the process has been resumed by a continue operation.
`public static final int` | `RESUME_STEP_IN` a constant passed to `onResume` to denote the process has been resumed by a step in operation.
`public static final int` | `RESUME_STEP_OUT` a constant passed to `onResume` to denote the process has been resumed by a step out operation.
`public static final int` | `RESUME_STEP_OVER` a constant passed to `onResume` to denote the process has been resumed by a step over operation.

## Method Summary

`public void` | `onBreak`(`IDebugBreakPoint` bp, `IDebugInstructionPoint` ip) called when we hit either a breakpoint or a step event.
`public void` | `onResume`(int resumeType) called when the VM is resumed.
`public void` | `onShutdown`() called when a debugging session is ended.
`public void` | `onStartup`(`IDebugData` dd) called back when a debugging session is started.

## Field Detail

### RESUME_CONTINUE

    public static final int RESUME_CONTINUE

  a constant passed to `onResume` to denote the process has been resumed by a continue operation.

### RESUME_STEP_IN

    public static final int RESUME_STEP_IN

  a constant passed to `onResume` to denote the process has been resumed by a step in operation.

### RESUME_STEP_OUT

    public static final int RESUME_STEP_OUT

  a constant passed to `onResume` to denote the process has been resumed by a step out operation.

### RESUME_STEP_OVER

    public static final int RESUME_STEP_OVER

  a constant passed to `onResume` to denote the process has been resumed by a step over operation.

## Method Detail

### onBreak(IDebugBreakPoint, IDebugInstructionPoint) Method

    public void onBreak(IDebugBreakPoint bp,
                        IDebugInstructionPoint ip)

called when we hit either a breakpoint or a step event. If we hit a breakpoint, the breakpoint will be passed in through the `bp` param. If we stepped, `bp` will be null.

#### Parameters

bp
  -- The breakpoint we hit, if any

ip
  -- The instruction point representing where the current instruction pointer is. if the file could not be opened, or the position could not be resolved, this will be null. In that case this call will be quickly followed up by a StepOut command.

### onResume(int) Method

    public void onResume(int resumeType)

called when the VM is resumed.

#### Parameters

resumeType
  -- the type of resume used. This represents either a stepping action or a continue.

### onShutdown() Method

    public void onShutdown()

called when a debugging session is ended.

### onStartup(IDebugData) Method

    public void onStartup(IDebugData dd)

called back when a debugging session is started. In the case of an error starting up, you should see an OnStartup quickly followed up by an OnShutdown. Only one DebugData can be running at a time.

#### Parameters

dd
  -- The IDebugData representing the debug session starting.