Lines Matching defs:Debug

8 var Debug = {};
15 // Debug events which can occour in the V8 JavaScript engine. These originate
17 Debug.DebugEvent = { Break: 1,
28 Debug.ExceptionBreak = { Caught : 0,
32 Debug.StepAction = { StepOut: 0,
39 Debug.ScriptType = { Native: 0,
45 Debug.ScriptCompilationType = { Host: 0,
50 Debug.ScriptBreakPointType = { ScriptId: 0,
56 Debug.BreakPositionAlignment = {
80 getValue: function() { return Debug.isBreakOnException(); },
83 Debug.setBreakOnException();
85 Debug.clearBreakOnException();
90 getValue: function() { return Debug.isBreakOnUncaughtException(); },
93 Debug.setBreakOnUncaughtException();
95 Debug.clearBreakOnUncaughtException();
243 if (type == Debug.ScriptBreakPointType.ScriptId) {
245 } else if (type == Debug.ScriptBreakPointType.ScriptName) {
247 } else if (type == Debug.ScriptBreakPointType.ScriptRegExp) {
256 ? Debug.BreakPositionAlignment.Statement : opt_position_alignment;
267 var copy = new ScriptBreakPoint(Debug.ScriptBreakPointType.ScriptId,
384 if (this.type_ == Debug.ScriptBreakPointType.ScriptId) {
392 if (this.type_ == Debug.ScriptBreakPointType.ScriptName) {
394 } else if (this.type_ == Debug.ScriptBreakPointType.ScriptRegExp) {
427 var position = Debug.findScriptSourcePosition(script, this.line(), column);
472 if ((break_point.type() == Debug.ScriptBreakPointType.ScriptName ||
473 break_point.type() == Debug.ScriptBreakPointType.ScriptRegExp) &&
492 Debug.setListener = function(listener, opt_data) {
500 Debug.breakExecution = function(f) {
504 Debug.breakLocations = function(f, opt_position_aligment) {
507 ? Debug.BreakPositionAlignment.Statement : opt_position_aligment;
516 Debug.findScript = function(func_or_script_name) {
520 var scripts = Debug.scripts();
549 Debug.scriptSource = function(func_or_script_name) {
553 Debug.source = function(f) {
558 Debug.disassemble = function(f) {
563 Debug.disassembleConstructor = function(f) {
568 Debug.ExecuteInDebugContext = function(f, without_debugger) {
573 Debug.sourcePosition = function(f) {
579 Debug.findFunctionSourceLocation = function(func, opt_line, opt_column) {
588 Debug.findScriptSourcePosition = function(script, opt_line, opt_column) {
594 Debug.findBreakPoint = function(break_point_number, remove) {
613 Debug.findBreakPointActualLocations = function(break_point_number) {
627 Debug.setBreakPoint = function(func, opt_line, opt_column, opt_condition) {
640 if (script.type == Debug.ScriptType.Native) {
670 Debug.setBreakPointByScriptIdAndPosition = function(script_id, position,
681 ? Debug.BreakPositionAlignment.Statement : opt_position_alignment;
693 Debug.enableBreakPoint = function(break_point_number) {
702 Debug.disableBreakPoint = function(break_point_number) {
711 Debug.changeBreakPointCondition = function(break_point_number, condition) {
717 Debug.changeBreakPointIgnoreCount = function(break_point_number, ignoreCount) {
726 Debug.clearBreakPoint = function(break_point_number) {
739 Debug.clearAllBreakPoints = function() {
748 Debug.disableAllBreakPoints = function() {
751 Debug.disableBreakPoint(i);
754 %ChangeBreakOnException(Debug.ExceptionBreak.Caught, false);
755 %ChangeBreakOnException(Debug.ExceptionBreak.Uncaught, false);
759 Debug.findScriptBreakPoint = function(break_point_number, remove) {
778 Debug.setScriptBreakPoint = function(type, script_id_or_name,
804 Debug.setScriptBreakPointById = function(script_id,
808 return this.setScriptBreakPoint(Debug.ScriptBreakPointType.ScriptId,
815 Debug.setScriptBreakPointByName = function(script_name,
818 return this.setScriptBreakPoint(Debug.ScriptBreakPointType.ScriptName,
824 Debug.setScriptBreakPointByRegExp = function(script_regexp,
827 return this.setScriptBreakPoint(Debug.ScriptBreakPointType.ScriptRegExp,
833 Debug.enableScriptBreakPoint = function(break_point_number) {
839 Debug.disableScriptBreakPoint = function(break_point_number) {
845 Debug.changeScriptBreakPointCondition = function(
852 Debug.changeScriptBreakPointIgnoreCount = function(
862 Debug.scriptBreakPoints = function() {
867 Debug.clearStepping = function() {
871 Debug.setBreakOnException = function() {
872 return %ChangeBreakOnException(Debug.ExceptionBreak.Caught, true);
875 Debug.clearBreakOnException = function() {
876 return %ChangeBreakOnException(Debug.ExceptionBreak.Caught, false);
879 Debug.isBreakOnException = function() {
880 return !!%IsBreakOnException(Debug.ExceptionBreak.Caught);
883 Debug.setBreakOnUncaughtException = function() {
884 return %ChangeBreakOnException(Debug.ExceptionBreak.Uncaught, true);
887 Debug.clearBreakOnUncaughtException = function() {
888 return %ChangeBreakOnException(Debug.ExceptionBreak.Uncaught, false);
891 Debug.isBreakOnUncaughtException = function() {
892 return !!%IsBreakOnException(Debug.ExceptionBreak.Uncaught);
895 Debug.showBreakPoints = function(f, full, opt_position_alignment) {
919 Debug.scripts = function() {
925 Debug.debuggerFlags = function() {
929 Debug.MakeMirror = MakeMirror;
942 var action = Debug.StepAction.StepIn;
1004 return Debug.DebugEvent.Break;
1084 return Debug.DebugEvent.Exception;
1174 case Debug.DebugEvent.BeforeCompile:
1177 case Debug.DebugEvent.AfterCompile:
1180 case Debug.DebugEvent.CompileError:
1451 var action = Debug.StepAction.StepIn;
1468 action = Debug.StepAction.StepIn;
1470 action = Debug.StepAction.StepMin;
1472 action = Debug.StepAction.StepNext;
1474 action = Debug.StepAction.StepOut;
1542 break_point_number = Debug.setBreakPoint(f, line, column, condition);
1555 break_point_number = Debug.setBreakPoint(mirror.value(),
1560 Debug.setScriptBreakPointByName(target, line, column, condition,
1564 Debug.setScriptBreakPointById(target, line, column, condition, groupId);
1567 Debug.setScriptBreakPointByRegExp(target, line, column, condition,
1575 var break_point = Debug.findBreakPoint(break_point_number);
1577 Debug.changeBreakPointIgnoreCount(break_point_number, ignoreCount);
1580 Debug.disableBreakPoint(break_point_number);
1589 if (break_point.type() == Debug.ScriptBreakPointType.ScriptId) {
1592 } else if (break_point.type() == Debug.ScriptBreakPointType.ScriptName) {
1595 } else if (break_point.type() == Debug.ScriptBreakPointType.ScriptRegExp) {
1635 Debug.enableBreakPoint(break_point);
1637 Debug.disableBreakPoint(break_point);
1643 Debug.changeBreakPointCondition(break_point, condition);
1648 Debug.changeBreakPointIgnoreCount(break_point, ignoreCount);
1706 Debug.clearBreakPoint(break_point);
1731 if (break_point.type() == Debug.ScriptBreakPointType.ScriptId) {
1734 } else if (break_point.type() == Debug.ScriptBreakPointType.ScriptName) {
1737 } else if (break_point.type() == Debug.ScriptBreakPointType.ScriptRegExp) {
1749 breakOnExceptions: Debug.isBreakOnException(),
1750 breakOnUncaughtExceptions: Debug.isBreakOnUncaughtException()
1757 Debug.disableAllBreakPoints();
1780 enabled = !Debug.isBreakOnException();
1782 enabled = !Debug.isBreakOnUncaughtException();
1795 %ChangeBreakOnException(Debug.ExceptionBreak.Caught, enabled);
1797 %ChangeBreakOnException(Debug.ExceptionBreak.Uncaught, enabled);
2226 var types = ScriptTypeFlag(Debug.ScriptType.Normal);
2359 result_description = Debug.LiveEdit.SetScriptSource(the_script,
2362 if (e instanceof Debug.LiveEdit.Failure && "details" in e) {
2402 var result_description = Debug.LiveEdit.RestartFrame(frame_mirror);
2586 Debug.TestApi = {