Java Doc for Debugger.java in  » IDE » DrJava » edu » rice » cs » drjava » model » debug » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE » DrJava » edu.rice.cs.drjava.model.debug 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


edu.rice.cs.drjava.model.debug.Debugger

All known Subclasses:   edu.rice.cs.drjava.model.debug.jpda.JPDADebugger,  edu.rice.cs.drjava.model.debug.NoDebuggerAvailable,
Debugger
public interface Debugger (Code)
Interface for any debugger implementation to be used by DrJava.
version:
   $Id: Debugger.java 4255 2007-08-28 19:17:37Z mgricken $

Inner Class :public static enum StepType



Method Summary
public  voidaddListener(DebugListener listener)
     Adds a listener to this Debugger.
public  voidaddWatch(String field)
     Adds a watch on the given field or variable.
public  DebugModelCallbackcallback()
    
public  BreakpointgetBreakpoint(int line, String className)
     Gets the Breakpoint object at the specified line in the given class.
public  Vector<DebugStackData>getCurrentStackFrameData()
     Returns a Vector of StackData for the current thread.
public  Vector<DebugThreadData>getCurrentThreadData()
     Returns a Vector of ThreadData.
public  Vector<DebugWatchData>getWatches()
     Returns all currently watched fields and variables.
public  booleanhasRunningThread()
     Returns whether the thread the debugger is tracking is now running.
public  booleanhasSuspendedThreads()
    
public  booleanisAvailable()
     Returns whether the debugger can be used in this copy of DrJava.
public  booleanisCurrentThreadSuspended()
     Returns whether the debugger's current thread is suspended.
public  booleanisReady()
     Returns whether the debugger is enabled.
public  voidremoveAllWatches()
     Removes all watches on existing fields and variables.
public  voidremoveBreakpoint(Breakpoint breakpoint)
     Removes a breakpoint.
public  voidremoveListener(DebugListener listener)
     Removes a listener to this Debugger.
public  voidremoveWatch(String field)
     Removes any watches on the given field or variable.
public  voidremoveWatch(int index)
     Removes the watch at the given index.
public  voidresume()
     Resumes execution of the currently loaded document.
public  voidresume(DebugThreadData data)
     Resumes execution of the given thread.
public  voidscrollToSource(DebugStackData data)
    
public  voidscrollToSource(Breakpoint bp)
    
public  voidsetBreakpoint(Breakpoint breakpoint)
     Sets a breakpoint.
public  voidsetCurrentThread(DebugThreadData d)
     Sets the current thread we are debugging to the thread referenced by d.
public  voidshutdown()
     Disconnects the debugger from the Interactions JVM and cleans up any state.
public  voidstartUp()
     Attaches the debugger to the Interactions JVM to prepare for debugging.
public  voidstep(StepType type)
     Steps the execution of the currently loaded document.
public  voidtoggleBreakpoint(OpenDefinitionsDocument doc, int offset, int lineNum, boolean isEnabled)
     Toggles whether a breakpoint is set at the given line in the given document.



Method Detail
addListener
public void addListener(DebugListener listener)(Code)
Adds a listener to this Debugger.
Parameters:
  listener - a listener that reacts on events generated by the Debugger



addWatch
public void addWatch(String field) throws DebugException(Code)
Adds a watch on the given field or variable.
Parameters:
  field - the name of the field we will watch



callback
public DebugModelCallback callback()(Code)



getBreakpoint
public Breakpoint getBreakpoint(int line, String className) throws DebugException(Code)
Gets the Breakpoint object at the specified line in the given class. If the given data do not correspond to an actual breakpoint, null is returned.
Parameters:
  line - the line number of the breakpoint
Parameters:
  className - the name of the class the breakpoint's in the Breakpoint corresponding to the line and className, or null ifthere is no such breakpoint.



getCurrentStackFrameData
public Vector<DebugStackData> getCurrentStackFrameData() throws DebugException(Code)
Returns a Vector of StackData for the current thread.



getCurrentThreadData
public Vector<DebugThreadData> getCurrentThreadData() throws DebugException(Code)
Returns a Vector of ThreadData.



getWatches
public Vector<DebugWatchData> getWatches() throws DebugException(Code)
Returns all currently watched fields and variables.



hasRunningThread
public boolean hasRunningThread() throws DebugException(Code)
Returns whether the thread the debugger is tracking is now running.



hasSuspendedThreads
public boolean hasSuspendedThreads() throws DebugException(Code)
true if there are any threads in the program currently beingdebugged which have been suspended (by the user or by hitting a breakpoint).



isAvailable
public boolean isAvailable()(Code)
Returns whether the debugger can be used in this copy of DrJava. This does not indicate whether it is ready to be used, which is indicated by isReady().



isCurrentThreadSuspended
public boolean isCurrentThreadSuspended() throws DebugException(Code)
Returns whether the debugger's current thread is suspended.



isReady
public boolean isReady()(Code)
Returns whether the debugger is enabled.



removeAllWatches
public void removeAllWatches() throws DebugException(Code)
Removes all watches on existing fields and variables.



removeBreakpoint
public void removeBreakpoint(Breakpoint breakpoint) throws DebugException(Code)
Removes a breakpoint. Called from ToggleBreakpoint -- even with BPs that are not active.
Parameters:
  breakpoint - The breakpoint to remove.



removeListener
public void removeListener(DebugListener listener)(Code)
Removes a listener to this Debugger.
Parameters:
  listener - listener to remove



removeWatch
public void removeWatch(String field) throws DebugException(Code)
Removes any watches on the given field or variable.
Parameters:
  field - the name of the field we will watch



removeWatch
public void removeWatch(int index) throws DebugException(Code)
Removes the watch at the given index.
Parameters:
  index - Index of the watch to remove



resume
public void resume() throws DebugException(Code)
Resumes execution of the currently loaded document.



resume
public void resume(DebugThreadData data) throws DebugException(Code)
Resumes execution of the given thread.
Parameters:
  data - the DebugThreadData representing the thread to resume



scrollToSource
public void scrollToSource(DebugStackData data) throws DebugException(Code)
scrolls to the source indicated by the given DebugStackData
Parameters:
  data - the DebugStackData representing the source location



scrollToSource
public void scrollToSource(Breakpoint bp)(Code)
scrolls to the source indicated by the given Breakpoint
Parameters:
  bp - the Breakpoint representing the source location



setBreakpoint
public void setBreakpoint(Breakpoint breakpoint) throws DebugException(Code)
Sets a breakpoint.
Parameters:
  breakpoint - The new breakpoint to set



setCurrentThread
public void setCurrentThread(DebugThreadData d) throws DebugException(Code)
Sets the current thread we are debugging to the thread referenced by d.



shutdown
public void shutdown()(Code)
Disconnects the debugger from the Interactions JVM and cleans up any state.



startUp
public void startUp() throws DebugException(Code)
Attaches the debugger to the Interactions JVM to prepare for debugging.



step
public void step(StepType type) throws DebugException(Code)
Steps the execution of the currently loaded document.



toggleBreakpoint
public void toggleBreakpoint(OpenDefinitionsDocument doc, int offset, int lineNum, boolean isEnabled) throws DebugException(Code)
Toggles whether a breakpoint is set at the given line in the given document.
Parameters:
  doc - Document in which to set or remove the breakpoint
Parameters:
  offset - Start offset on the line to set the breakpoint
Parameters:
  lineNum - Line on which to set or remove the breakpoint, >=1
Parameters:
  isEnabled - true if this breakpoint should be enabled



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.