home *** CD-ROM | disk | FTP | other *** search
/ Symantec Visual Cafe for Java 2.5 / symantec-visual-cafe-2.5-database-dev-edition.iso / VPage / Java.bin / CLASSES.ZIP / sun / tools / debug / RemoteDebugger.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-07-08  |  2.7 KB  |  91 lines

  1. package sun.tools.debug;
  2.  
  3. public class RemoteDebugger {
  4.    private RemoteAgent agent;
  5.  
  6.    public RemoteDebugger(String var1, String var2, DebuggerCallback var3, boolean var4) throws Exception {
  7.       this.agent = new RemoteAgent(var1, var2, "", var3, var4);
  8.    }
  9.  
  10.    public RemoteDebugger(String var1, DebuggerCallback var2, boolean var3) throws Exception {
  11.       if (Agent.isDebuggable()) {
  12.          this.agent = new RemoteAgent(var2, var3);
  13.       } else {
  14.          this.agent = new RemoteAgent("127.0.0.1", (String)null, var1, var2, var3);
  15.       }
  16.    }
  17.  
  18.    public void close() {
  19.       this.agent.close();
  20.    }
  21.  
  22.    public RemoteObject get(Integer var1) {
  23.       return this.agent.get(var1);
  24.    }
  25.  
  26.    public RemoteClass[] listClasses() throws Exception {
  27.       return this.agent.listClasses();
  28.    }
  29.  
  30.    public RemoteClass findClass(String var1) throws Exception {
  31.       return this.agent.findClass(var1);
  32.    }
  33.  
  34.    public RemoteThreadGroup[] listThreadGroups(RemoteThreadGroup var1) throws Exception {
  35.       return this.agent.listThreadGroups(var1);
  36.    }
  37.  
  38.    public void cont() throws Exception {
  39.       this.agent.resumeLastSuspendedThreads();
  40.    }
  41.  
  42.    // $FF: renamed from: gc (sun.tools.debug.RemoteObject[]) void
  43.    public void method_0(RemoteObject[] var1) throws Exception {
  44.       this.agent.gc(var1);
  45.    }
  46.  
  47.    public void trace(boolean var1) throws Exception {
  48.       this.agent.trace(var1);
  49.    }
  50.  
  51.    public void itrace(boolean var1) throws Exception {
  52.       this.agent.itrace(var1);
  53.    }
  54.  
  55.    public int totalMemory() throws Exception {
  56.       return this.agent.totalMemory();
  57.    }
  58.  
  59.    public int freeMemory() throws Exception {
  60.       return this.agent.freeMemory();
  61.    }
  62.  
  63.    public RemoteThreadGroup run(int var1, String[] var2) throws Exception {
  64.       return this.agent.run(var1, var2);
  65.    }
  66.  
  67.    public String[] listBreakpoints() throws Exception {
  68.       return this.agent.listBreakpoints();
  69.    }
  70.  
  71.    public String[] getExceptionCatchList() throws Exception {
  72.       return this.agent.getExceptionCatchList();
  73.    }
  74.  
  75.    public String getSourcePath() throws Exception {
  76.       return this.agent.getSourcePath();
  77.    }
  78.  
  79.    public void setSourcePath(String var1) throws Exception {
  80.       this.agent.setSourcePath(var1);
  81.    }
  82.  
  83.    public void addSystemThread() {
  84.       Agent.addSystemThread(Thread.currentThread());
  85.    }
  86.  
  87.    public void addSystemThread(Thread var1) {
  88.       Agent.addSystemThread(var1);
  89.    }
  90. }
  91.