Lines Matching refs:Debug
30 Debug = debug.Debug
38 bp = Debug.setBreakPoint(f, 0, 0);
39 assertEquals("() {[B0]a=1;b=2}", Debug.showBreakPoints(f));
40 Debug.clearBreakPoint(bp);
41 assertEquals("() {a=1;b=2}", Debug.showBreakPoints(f));
42 bp1 = Debug.setBreakPoint(f, 0, 8);
43 assertEquals("() {a=1;[B0]b=2}", Debug.showBreakPoints(f));
44 bp2 = Debug.setBreakPoint(f, 0, 4);
45 assertEquals("() {[B0]a=1;[B1]b=2}", Debug.showBreakPoints(f));
46 bp3 = Debug.setBreakPoint(f, 0, 11);
47 assertEquals("() {[B0]a=1;[B1]b=2[B2]}", Debug.showBreakPoints(f));
48 Debug.clearBreakPoint(bp1);
49 assertEquals("() {[B0]a=1;b=2[B1]}", Debug.showBreakPoints(f));
50 Debug.clearBreakPoint(bp2);
51 assertEquals("() {a=1;b=2[B0]}", Debug.showBreakPoints(f));
52 Debug.clearBreakPoint(bp3);
53 assertEquals("() {a=1;b=2}", Debug.showBreakPoints(f));
65 bp = Debug.setBreakPoint(g, 0, 0);
70 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]a=1;") > 0);
71 Debug.clearBreakPoint(bp);
76 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]") < 0);
79 bp1 = Debug.setBreakPoint(g, 2, 0);
84 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]b=2;") > 0);
85 bp2 = Debug.setBreakPoint(g, 1, 0);
90 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]a=1;") > 0);
91 assertTrue(Debug.showBreakPoints(g).indexOf("[B1]b=2;") > 0);
92 bp3 = Debug.setBreakPoint(g, 3, 0);
97 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]a=1;") > 0);
98 assertTrue(Debug.showBreakPoints(g).indexOf("[B1]b=2;") > 0);
99 assertTrue(Debug.showBreakPoints(g).indexOf("[B2]}") > 0);
100 Debug.clearBreakPoint(bp1);
105 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]a=1;") > 0);
106 assertTrue(Debug.showBreakPoints(g).indexOf("[B1]}") > 0);
107 assertTrue(Debug.showBreakPoints(g).indexOf("[B2]") < 0);
108 Debug.clearBreakPoint(bp2);
113 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]}") > 0);
114 assertTrue(Debug.showBreakPoints(g).indexOf("[B1]") < 0);
115 Debug.clearBreakPoint(bp3);
120 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]") < 0);
126 var break_point = Debug.setBreakPointByScriptIdAndPosition(
127 Debug.findScript(f).id,
128 position + Debug.sourcePosition(f),
135 assertEquals("() {[B0]a=1;b=2}", Debug.showBreakPoints(f));
136 Debug.clearBreakPoint(bp);
137 assertEquals("() {a=1;b=2}", Debug.showBreakPoints(f));
139 assertEquals("() {a=1;[B0]b=2}", Debug.showBreakPoints(f));
141 assertEquals("() {[B0]a=1;[B1]b=2}", Debug.showBreakPoints(f));
143 assertEquals("() {[B0]a=1;[B1]b=2[B2]}", Debug.showBreakPoints(f));
144 Debug.clearBreakPoint(bp1);
145 assertEquals("() {[B0]a=1;b=2[B1]}", Debug.showBreakPoints(f));
146 Debug.clearBreakPoint(bp2);
147 assertEquals("() {a=1;b=2[B0]}", Debug.showBreakPoints(f));
148 Debug.clearBreakPoint(bp3);
149 assertEquals("() {a=1;b=2}", Debug.showBreakPoints(f));
156 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]a=1;") > 0);
157 Debug.clearBreakPoint(bp);
162 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]") < 0);
170 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]b=2;") > 0);
176 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]a=1;") > 0);
177 assertTrue(Debug.showBreakPoints(g).indexOf("[B1]b=2;") > 0);
183 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]a=1;") > 0);
184 assertTrue(Debug.showBreakPoints(g).indexOf("[B1]b=2;") > 0);
185 assertTrue(Debug.showBreakPoints(g).indexOf("[B2]}") > 0);
186 Debug.clearBreakPoint(bp1);
191 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]a=1;") > 0);
192 assertTrue(Debug.showBreakPoints(g).indexOf("[B1]}") > 0);
193 assertTrue(Debug.showBreakPoints(g).indexOf("[B2]") < 0);
194 Debug.clearBreakPoint(bp2);
199 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]}") > 0);
200 assertTrue(Debug.showBreakPoints(g).indexOf("[B1]") < 0);
201 Debug.clearBreakPoint(bp3);
206 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]") < 0);
220 Debug.BreakPositionAlignment.BreakPosition);
221 assertTrue(Debug.showBreakPoints(h, undefined,
222 Debug.BreakPositionAlignment.BreakPosition).indexOf(scenario[i][1]) > 0);
223 Debug.clearBreakPoint(bp1);