Lines Matching full:debug
28 // Flags: --expose-debug-as debug
29 // Get the Debug object exposed from the debug context global object.
30 var Debug = debug.Debug
32 // Simple function which stores the last debug event.
66 if (event == Debug.DebugEvent.Break) {
67 // Get the debug command processor.
75 } else if (event == Debug.DebugEvent.AfterCompile) {
85 // Add the debug event listener.
86 Debug.setListener(listener);
96 // Set a break point and call to invoke the debug event listener.
97 var bp1 = Debug.setScriptBreakPointById(scriptId, 1, null, null, groupId1);
98 var bp2 = Debug.setScriptBreakPointById(scriptId, 1, null, null, groupId2);
99 var bp3 = Debug.setScriptBreakPointById(scriptId, 1, null, null, null);
100 var bp4 = Debug.setScriptBreakPointById(scriptId, 3, null, null, groupId1);
101 var bp5 = Debug.setScriptBreakPointById(scriptId, 4, null, null, groupId2);
103 assertEquals(5, Debug.scriptBreakPoints().length);
108 // Make sure that the debug event listener vas invoked.
112 var breakpoints = Debug.scriptBreakPoints();
125 Debug.clearBreakPoint(bp2);
126 Debug.clearBreakPoint(bp3);
127 Debug.clearBreakPoint(bp5);