Home | History | Annotate | Download | only in mjsunit

Lines Matching full:debug

28 // Flags: --expose-debug-as debug
29 // Get the Debug object exposed from the debug context global object.
30 Debug = debug.Debug
31 Debug.setListener(function(){});
37 var scripts = Debug.scripts();
41 if (name !== undefined && name.includes("debug-script-breakpoints.js")) {
54 var breakpoint = Debug.scriptBreakPoints()[id];
62 var sbp = Debug.setScriptBreakPointByName(script_name, 35, 5);
63 assertEquals(1, Debug.scriptBreakPoints().length);
65 Debug.clearBreakPoint(sbp);
66 assertEquals(0, Debug.scriptBreakPoints().length);
69 var sbp1 = Debug.setScriptBreakPointByName(script_name, 36, 3);
70 var sbp2 = Debug.setScriptBreakPointByName(script_name, 37, 4);
71 var sbp3 = Debug.setScriptBreakPointByName(script_name, 38, 5);
74 assertEquals(3, Debug.scriptBreakPoints().length);
80 assertEquals(3, Debug.scriptBreakPoints().length);
81 Debug.clearBreakPoint(sbp1);
82 assertEquals(2, Debug.scriptBreakPoints().length);
83 Debug.clearBreakPoint(sbp3);
84 assertEquals(1, Debug.scriptBreakPoints().length);
85 Debug.clearBreakPoint(sbp2);
86 assertEquals(0, Debug.scriptBreakPoints().length);
91 var breakpoint = Debug.scriptBreakPoints()[id];
99 var sbp = Debug.setScriptBreakPointById(script_id, 40, 6);
100 assertEquals(1, Debug.scriptBreakPoints().length);
102 Debug.clearBreakPoint(sbp);
103 assertEquals(0, Debug.scriptBreakPoints().length);
106 var sbp1 = Debug.setScriptBreakPointById(script_id, 42, 3);
107 var sbp2 = Debug.setScriptBreakPointById(script_id, 43, 4);
108 var sbp3 = Debug.setScriptBreakPointById(script_id, 44, 5);
111 assertEquals(3, Debug.scriptBreakPoints().length);
117 assertEquals(3, Debug.scriptBreakPoints().length);
118 Debug.clearBreakPoint(sbp1);
119 assertEquals(2, Debug.scriptBreakPoints().length);
120 Debug.clearBreakPoint(sbp3);
121 assertEquals(1, Debug.scriptBreakPoints().length);
122 Debug.clearBreakPoint(sbp2);
123 assertEquals(0, Debug.scriptBreakPoints().length);
125 Debug.setListener(null);