181851 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1919*/
2020
21- package processing .mode .java . debug ;
21+ package processing .mode .java ;
2222
2323import com .sun .jdi .*;
2424import com .sun .jdi .event .*;
4141
4242import processing .app .Sketch ;
4343import processing .app .SketchCode ;
44- import processing .mode .java .JavaBuild ;
44+ import processing .mode .java .debug .ArrayFieldNode ;
45+ import processing .mode .java .debug .ClassLoadListener ;
46+ import processing .mode .java .debug .FieldNode ;
47+ import processing .mode .java .debug .LineBreakpoint ;
48+ import processing .mode .java .debug .LineID ;
49+ import processing .mode .java .debug .LocalVariableNode ;
50+ import processing .mode .java .debug .VariableInspector ;
51+ import processing .mode .java .debug .VariableNode ;
4552import processing .mode .java .pdex .VMEventListener ;
4653import processing .mode .java .pdex .VMEventReader ;
4754import processing .mode .java .runner .Runner ;
4855
4956
5057/**
51- * Main controller class for debugging mode. Mainly works with DebugEditor as
58+ * Main controller class for debugging mode. Mainly works with JavaEditor as
5259 * the corresponding "view". Uses DebugRunner to launch a VM.
5360 *
5461 * @author Martin Leopold <m@martinleopold.com>
5562 */
5663public class Debugger implements VMEventListener {
5764
58- protected DebugEditor editor ; // editor window, acting as main view
65+ protected JavaEditor editor ; // editor window, acting as main view
5966 protected Runner runtime ; // the runtime, contains debuggee VM
6067 protected boolean started = false ; // debuggee vm has started, VMStartEvent received, main class loaded
6168 protected boolean paused = false ; // currently paused at breakpoint or step
@@ -75,7 +82,7 @@ public class Debugger implements VMEventListener {
7582 *
7683 * @param editor The Editor that will act as primary view
7784 */
78- public Debugger (DebugEditor editor ) {
85+ public Debugger (JavaEditor editor ) {
7986 this .editor = editor ;
8087 }
8188
@@ -97,7 +104,7 @@ public VirtualMachine vm() {
97104 *
98105 * @return the editor object
99106 */
100- public DebugEditor editor () {
107+ public JavaEditor editor () {
101108 return editor ;
102109 }
103110
@@ -1057,7 +1064,7 @@ protected List<VariableNode> getFields(Value value, int depth, int maxDepth, boo
10571064 * @param maxDepth max recursion depth. 0 will give only direct children
10581065 * @return list of child fields of the given value
10591066 */
1060- protected List <VariableNode > getFields (Value value , int maxDepth , boolean includeInherited ) {
1067+ public List <VariableNode > getFields (Value value , int maxDepth , boolean includeInherited ) {
10611068 return getFields (value , 0 , maxDepth , includeInherited );
10621069 }
10631070
0 commit comments