jde.debugger
Class BreakpointCommands

java.lang.Object
  |
  +--jde.debugger.ApplicationCommands
        |
        +--jde.debugger.BreakpointCommands
All Implemented Interfaces:
Protocol

public class BreakpointCommands
extends ApplicationCommands

BreakpointCommands.java

Handles commands related to breakpointing, watchpointing and catching exceptions. Jump to 'doCatchException', 'watch', 'break', 'clear', 'step'

Created: Fri Jul 30 15:44:59 1999

Since:
0.1
Author:
Amit Kumar

Fields inherited from class jde.debugger.ApplicationCommands
app, identifiableEventRequests, store
 
Fields inherited from interface jde.debugger.Protocol
ATTACH_SHMEM, ATTACH_SOCKET, BR, BREAK, CANCEL_TRACE_CLASSES, CANCEL_TRACE_METHODS, CANCEL_TRACE_THREADS, CLEAR, COMMAND_ERROR, COMMAND_RESULT, CONNECTED_TO_VM, DEBUG, ERROR, EVALUATE, EVENT_BREAKPOINT_HIT, EVENT_CLASS_PREPARE, EVENT_CLASS_UNLOAD, EVENT_EXCEPTION, EVENT_METHOD_ENTRY, EVENT_METHOD_EXIT, EVENT_OTHER, EVENT_STEP_COMPLETED, EVENT_THREAD_DEATH, EVENT_THREAD_START, EVENT_VM_DEATH, EVENT_VM_DISCONNECT, EVENT_VM_START, EVENT_WATCHPOINT_HIT, EVENTSET, EXIT, FINISH, GET_ARRAY, GET_LOADED_CLASSES, GET_LOCALS, GET_OBJECT, GET_OBJECT_MONITORS, GET_PATH_INFORMATION, GET_STRING, GET_THREAD, GET_THREADS, INTERRUPT, INVALID, JDE_BUG, JDE_INIT_DEBUG_SESSION, KILL_THREAD, LAUNCH, LISTEN_SHMEM, LISTEN_SOCKET, MESSAGE, QUIT, REPORT_IDS_IN_USE, RESUME, RUN, SPEC_RESOLVED, STEP, SUSPEND, TRACE_CLASSES, TRACE_EXCEPTIONS, TRACE_METHODS, TRACE_THREADS, WARNING, WATCH
 
Constructor Summary
BreakpointCommands(Application a, EventRequestSpecList e, ObjectStore s)
           
 
Method Summary
private  void clearPreviousStep(com.sun.jdi.ThreadReference thread)
          Clear a previous step request on this thread: only one is allowed per thread
 void doBreak(java.lang.Integer cmd_id, java.util.List args)
          'break' command.
 void doBreakAbsolute(java.lang.Integer cmd_id, java.util.List args)
          A break on a line of a given source file
 void doBreakInMethod(java.lang.Integer cmd_id, java.util.List args)
          A break in a particular method.
 void doBreakOnLine(java.lang.Integer cmd_id, java.util.List args)
          A break on a particular line of a class
 void doCatchException(java.lang.Integer cmd_id, java.util.List args)
          'catch_exception' command.
 void doClear(java.lang.Integer cmd_id, java.util.List args)
          'clear' command.
 void doStep(java.lang.Integer cmd_id, java.util.List args)
          'step' command.
 void doWatch(java.lang.Integer cmd_id, java.util.List args)
          'watch' command.
 
Methods inherited from class jde.debugger.ApplicationCommands
addIdentifiableRequest, deleteIdentifiableRequest
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

BreakpointCommands

public BreakpointCommands(Application a,
                          EventRequestSpecList e,
                          ObjectStore s)
Method Detail

doCatchException

public void doCatchException(java.lang.Integer cmd_id,
                             java.util.List args)
                      throws JDEException
'catch_exception' command.

Syntax:

 catch_exception classPattern type
      [thread-restriction]
      [suspend-policy]
      [class-filters]
      [class-exclusion-filters]
 
Returns:
 (jde-dbo-command-result cmd_id specID)
 
Comments:

See Also:
EventHandler.exceptionEvent(ExceptionEvent)

doWatch

public void doWatch(java.lang.Integer cmd_id,
                    java.util.List args)
             throws JDEException
'watch' command.

Syntax:

 watch classPattern fieldName type
      [thread-restriction]
      [expression-restriction]
      [object-id-restriction]
      [suspend-policy]
      [class-filters]
      [class-exclusion-filters]
 
Returns:
 (jde-dbo-command-result cmd_id specID)
 
Comments:

See Also:
EventHandler.watchpointEvent(WatchpointEvent)

doBreak

public void doBreak(java.lang.Integer cmd_id,
                    java.util.List args)
             throws JDEException
'break' command.

Syntax:

 break in_method class method [(args)] 
      [thread-restriction]
      [expression-restriction]
      [suspend-policy]
     
 break on_line   class line
      [thread-restriction]
      [expression-restriction]
      [suspend-policy]

 break absolute  file line
      [thread-restriction]
      [expression-restriction]
      [suspend-policy]
 
Returns:
 (jde-dbo-command-result cmd_id specID)
 
Comments:

See Also:
EventHandler.breakpointEvent(BreakpointEvent)

doClear

public void doClear(java.lang.Integer cmd_id,
                    java.util.List args)
             throws JDEException
'clear' command. Clears a breakpoint, watchpoint or an exception intercept

Syntax:

 clear specID
 
Comments:

doBreakInMethod

public void doBreakInMethod(java.lang.Integer cmd_id,
                            java.util.List args)
                     throws JDEException
A break in a particular method.

Syntax:

 break in_method class method [(arg1,arg2,...)] 
      [thread-restriction]
      [expression-restriction]
      [suspend-policy]
 
Comments:

doBreakOnLine

public void doBreakOnLine(java.lang.Integer cmd_id,
                          java.util.List args)
                   throws JDEException
A break on a particular line of a class

doBreakAbsolute

public void doBreakAbsolute(java.lang.Integer cmd_id,
                            java.util.List args)
                     throws JDEException
A break on a line of a given source file

doStep

public void doStep(java.lang.Integer cmd_id,
                   java.util.List args)
            throws JDEException
'step' command. This is only possible if the current thread is suspended.

Syntax:

 step type threadID
      [suspend-policy]
 
Comments:

See Also:
EventHandler.stepEvent(StepEvent)

clearPreviousStep

private void clearPreviousStep(com.sun.jdi.ThreadReference thread)
Clear a previous step request on this thread: only one is allowed per thread