Lines Matching refs:Debug
28 // Flags: --expose-debug-as debug
29 // Get the Debug object exposed from the debug context global object.
30 Debug = debug.Debug
33 var sbp = Debug.setScriptBreakPointByName("1", 2, 3);
34 assertEquals(1, Debug.scriptBreakPoints().length);
35 assertEquals("1", Debug.scriptBreakPoints()[0].script_name());
36 assertEquals(2, Debug.scriptBreakPoints()[0].line());
37 assertEquals(3, Debug.scriptBreakPoints()[0].column());
38 Debug.clearBreakPoint(sbp);
39 assertEquals(0, Debug.scriptBreakPoints().length);
42 var sbp1 = Debug.setScriptBreakPointByName("1", 2, 3);
43 var sbp2 = Debug.setScriptBreakPointByName("2", 3, 4);
44 var sbp3 = Debug.setScriptBreakPointByName("3", 4, 5);
47 assertEquals(3, Debug.scriptBreakPoints().length);
48 for (var i = 0; i < Debug.scriptBreakPoints().length; i++) {
49 var x = Debug.scriptBreakPoints()[i];
65 assertEquals(3, Debug.scriptBreakPoints().length);
66 Debug.clearBreakPoint(sbp1);
67 assertEquals(2, Debug.scriptBreakPoints().length);
68 Debug.clearBreakPoint(sbp3);
69 assertEquals(1, Debug.scriptBreakPoints().length);
70 Debug.clearBreakPoint(sbp2);
71 assertEquals(0, Debug.scriptBreakPoints().length);
74 var sbp = Debug.setScriptBreakPointById(1, 2, 3);
75 assertEquals(1, Debug.scriptBreakPoints().length);
76 assertEquals(1, Debug.scriptBreakPoints()[0].script_id());
77 assertEquals(2, Debug.scriptBreakPoints()[0].line());
78 assertEquals(3, Debug.scriptBreakPoints()[0].column());
79 Debug.clearBreakPoint(sbp);
80 assertEquals(0, Debug.scriptBreakPoints().length);
83 var sbp1 = Debug.setScriptBreakPointById(1, 2, 3);
84 var sbp2 = Debug.setScriptBreakPointById(2, 3, 4);
85 var sbp3 = Debug.setScriptBreakPointById(3, 4, 5);
88 assertEquals(3, Debug.scriptBreakPoints().length);
89 for (var i = 0; i < Debug.scriptBreakPoints().length; i++) {
90 var x = Debug.scriptBreakPoints()[i];
106 assertEquals(3, Debug.scriptBreakPoints().length);
107 Debug.clearBreakPoint(sbp1);
108 assertEquals(2, Debug.scriptBreakPoints().length);
109 Debug.clearBreakPoint(sbp3);
110 assertEquals(1, Debug.scriptBreakPoints().length);
111 Debug.clearBreakPoint(sbp2);
112 assertEquals(0, Debug.scriptBreakPoints().length);