Lines Matching refs:Debug

30 Debug = debug.Debug
36 if (event == Debug.DebugEvent.Break) {
42 Debug.setListener(listener);
53 bp = Debug.setBreakPoint(f, 0, 0, '{{{');
56 assertEquals(0, Debug.findBreakPoint(bp, false).hit_count());
57 Debug.clearBreakPoint(bp);
61 bp = Debug.setBreakPoint(f, 0, 0, 'false');
64 assertEquals(0, Debug.findBreakPoint(bp, false).hit_count());
65 Debug.clearBreakPoint(bp);
69 bp = Debug.setBreakPoint(f, 0, 0, 'true');
72 assertEquals(1, Debug.findBreakPoint(bp, false).hit_count());
73 Debug.clearBreakPoint(bp);
77 bp = Debug.setBreakPoint(f, 0, 0, '"a" == "a"');
80 assertEquals(1, Debug.findBreakPoint(bp, false).hit_count());
81 Debug.clearBreakPoint(bp);
83 bp = Debug.setBreakPoint(f, 0, 0, "'a' == 'a'");
86 assertEquals(1, Debug.findBreakPoint(bp, false).hit_count());
87 Debug.clearBreakPoint(bp);
91 bp = Debug.setBreakPoint(f, 0, 0, '"ab".indexOf("b") > 0');
94 assertEquals(1, Debug.findBreakPoint(bp, false).hit_count());
95 Debug.changeBreakPointCondition(bp, 'Math.sin(Math.PI/2) > 1');
98 assertEquals(1, Debug.findBreakPoint(bp, false).hit_count());
99 Debug.changeBreakPointCondition(bp, '1==1');
102 assertEquals(2, Debug.findBreakPoint(bp, false).hit_count());
103 Debug.clearBreakPoint(bp);
107 bp = Debug.setBreakPoint(f, 0, 0, 'x==1');
110 assertEquals(0, Debug.findBreakPoint(bp, false).hit_count());
114 assertEquals(1, Debug.findBreakPoint(bp, false).hit_count());
115 Debug.clearBreakPoint(bp);
119 bp = Debug.setBreakPoint(g, 0, 0, 'count % 2 == 0');
124 assertEquals(5, Debug.findBreakPoint(bp, false).hit_count());
125 Debug.clearBreakPoint(bp);
129 bp = Debug.setBreakPoint(h, 0, 0, 'x % 2 == 0');
134 assertEquals(5, Debug.findBreakPoint(bp, false).hit_count());
135 Debug.clearBreakPoint(bp);
139 bp = Debug.setBreakPoint(h, 0, 22, 'a % 2 == 0');
144 assertEquals(5, Debug.findBreakPoint(bp, false).hit_count());
145 Debug.clearBreakPoint(bp);
149 bp1 = Debug.setBreakPoint(h, 0, 22, 'a % 2 == 0');
150 bp2 = Debug.setBreakPoint(h, 0, 22, 'a % 2 == 0');
155 assertEquals(5, Debug.findBreakPoint(bp1, false).hit_count());
156 assertEquals(5, Debug.findBreakPoint(bp2, false).hit_count());
157 Debug.clearBreakPoint(bp1);
158 Debug.clearBreakPoint(bp2);
162 bp1 = Debug.setBreakPoint(h, 0, 22, 'a % 2 == 0');
163 bp2 = Debug.setBreakPoint(h, 0, 22, '(a + 1) % 2 == 0');
168 assertEquals(5, Debug.findBreakPoint(bp1, false).hit_count());
169 assertEquals(5, Debug.findBreakPoint(bp2, false).hit_count());
170 Debug.clearBreakPoint(bp1);
171 Debug.clearBreakPoint(bp2);