Class dstc.kalimantan.debug.Debugger
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dstc.kalimantan.debug.Debugger

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----dstc.kalimantan.debug.Debugger

public class Debugger
extends Frame
implements DebuggerCallback, PollCallback
A graphical debugger

Variable Index

 o args
The arguments to run a new thread
 o debugger
The remote debugger
 o pollManager
The poll manager

Constructor Index

 o Debugger(String)
Constructs a debugger on the local host using the cookie
 o Debugger(String, String)
Constructs a debugger on the named host using the cookie
 o Debugger()
Constructs a new local debugger

Method Index

 o action(Event, Object)
Handles button presses
 o breakpointEvent(RemoteThread)
Implements the DebuggerCallback interface
 o clearBreakpoint(String, String)
Removes a breakpoint fro the named class and method
 o clearBreakpoint(String, int)
Removes a breakpoint fro the named class and line number
 o exceptionEvent(RemoteThread, String)
Implements the DebuggerCallback interface
 o handleEvent(Event)
Handles UI events
 o hide()
Shut everything down when the window is hidden
 o initialize(RemoteDebugger)
Constructs a debugger on the given RemoteDebugger
 o loadClass(String)
Loads a class into the client application
 o pollEvent()
Implements the PollCallback interface
 o printToConsole(String)
Implements the DebuggerCallback interface
 o quitEvent()
Implements the DebuggerCallback interface
 o refreshThreads()
Updates the list of threads if necessary
 o run(String[])
Runs a class's main() method
 o run()
Run the default class's main() method
 o setBreakpoint(String, String)
Sets a breakpoint on the named class and method
 o show()
Connects the debugger to the polling mechanism when visible
 o threadDeathEvent(RemoteThread)
Implements the DebuggerCallback interface
 o updateList(List, String[], int)

Variables

 o debugger
  public RemoteDebugger debugger
The remote debugger
 o pollManager
  public PollManager pollManager
The poll manager
 o args
  public String args[]
The arguments to run a new thread

Constructors

 o Debugger
  public Debugger(String cookie) throws Exception
Constructs a debugger on the local host using the cookie
 o Debugger
  public Debugger(String hostName,
                  String cookie) throws Exception
Constructs a debugger on the named host using the cookie
 o Debugger
  public Debugger() throws Exception
Constructs a new local debugger

Methods

 o initialize
  public void initialize(RemoteDebugger debugger) throws Exception
Constructs a debugger on the given RemoteDebugger
 o breakpointEvent
  public void breakpointEvent(RemoteThread thread) throws Exception
Implements the DebuggerCallback interface
 o exceptionEvent
  public void exceptionEvent(RemoteThread thread,
                             String error) throws Exception
Implements the DebuggerCallback interface
 o quitEvent
  public void quitEvent()
Implements the DebuggerCallback interface
 o printToConsole
  public void printToConsole(String string)
Implements the DebuggerCallback interface
 o threadDeathEvent
  public void threadDeathEvent(RemoteThread thread)
Implements the DebuggerCallback interface
 o pollEvent
  public void pollEvent()
Implements the PollCallback interface
 o updateList
  public void updateList(List list,
                         String items[],
                         int index)
 o loadClass
  public void loadClass(String className)
Loads a class into the client application
 o run
  public void run(String args[])
Runs a class's main() method
 o run
  public void run()
Run the default class's main() method
 o setBreakpoint
  public void setBreakpoint(String className,
                            String methodName)
Sets a breakpoint on the named class and method
 o clearBreakpoint
  public void clearBreakpoint(String className,
                              String methodName)
Removes a breakpoint fro the named class and method
 o clearBreakpoint
  public void clearBreakpoint(String className,
                              int lineno)
Removes a breakpoint fro the named class and line number
 o refreshThreads
  public void refreshThreads() throws Exception
Updates the list of threads if necessary
 o show
  public void show()
Connects the debugger to the polling mechanism when visible
Overrides:
show in class Window
 o hide
  public void hide()
Shut everything down when the window is hidden
Overrides:
hide in class Component
 o handleEvent
  public boolean handleEvent(Event event)
Handles UI events
Overrides:
handleEvent in class Component
 o action
  public boolean action(Event event,
                        Object target)
Handles button presses
Overrides:
action in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index