Home | History | Annotate | Download | only in src

Lines Matching defs:Debug

31 var Debug = {};
38 // Debug events which can occour in the V8 JavaScript engine. These originate
39 // from the API include file debug.h.
40 Debug.DebugEvent = { Break: 1,
48 Debug.ExceptionBreak = { Caught : 0,
52 Debug.StepAction = { StepOut: 0,
59 Debug.ScriptType = { Native: 0,
65 Debug.ScriptCompilationType = { Host: 0,
70 Debug.ScriptBreakPointType = { ScriptId: 0,
93 getValue: function() { return Debug.isBreakOnException(); },
96 Debug.setBreakOnException();
98 Debug.clearBreakOnException();
103 getValue: function() { return Debug.isBreakOnUncaughtException(); },
106 Debug.setBreakOnUncaughtException();
108 Debug.clearBreakOnUncaughtException();
257 if (type == Debug.ScriptBreakPointType.ScriptId) {
259 } else if (type == Debug.ScriptBreakPointType.ScriptName) {
261 } else if (type == Debug.ScriptBreakPointType.ScriptRegExp) {
279 var copy = new ScriptBreakPoint(Debug.ScriptBreakPointType.ScriptId,
395 if (this.type_ == Debug.ScriptBreakPointType.ScriptId) {
403 if (this.type_ == Debug.ScriptBreakPointType.ScriptName) {
405 } else if (this.type_ == Debug.ScriptBreakPointType.ScriptRegExp) {
438 var position = Debug.findScriptSourcePosition(script, this.line(), column);
481 if ((break_point.type() == Debug.ScriptBreakPointType.ScriptName ||
482 break_point.type() == Debug.ScriptBreakPointType.ScriptRegExp) &&
501 Debug.setListener = function(listener, opt_data) {
509 Debug.breakExecution = function(f) {
513 Debug.breakLocations = function(f) {
523 Debug.findScript = function(func_or_script_name) {
527 var scripts = Debug.scripts();
556 Debug.scriptSource = function(func_or_script_name) {
560 Debug.source = function(f) {
565 Debug.disassemble = function(f) {
570 Debug.disassembleConstructor = function(f) {
575 Debug.ExecuteInDebugContext = function(f, without_debugger) {
580 Debug.sourcePosition = function(f) {
586 Debug.findFunctionSourceLocation = function(func, opt_line, opt_column) {
595 Debug.findScriptSourcePosition = function(script, opt_line, opt_column) {
601 Debug.findBreakPoint = function(break_point_number, remove) {
620 Debug.findBreakPointActualLocations = function(break_point_number) {
634 Debug.setBreakPoint = function(func, opt_line, opt_column, opt_condition) {
647 if (script.type == Debug.ScriptType.Native) {
677 Debug.setBreakPointByScriptIdAndPosition = function(script_id, position,
697 Debug.enableBreakPoint = function(break_point_number) {
706 Debug.disableBreakPoint = function(break_point_number) {
715 Debug.changeBreakPointCondition = function(break_point_number, condition) {
721 Debug.changeBreakPointIgnoreCount = function(break_point_number, ignoreCount) {
730 Debug.clearBreakPoint = function(break_point_number) {
743 Debug.clearAllBreakPoints = function() {
752 Debug.disableAllBreakPoints = function() {
755 Debug.disableBreakPoint(i);
758 %ChangeBreakOnException(Debug.ExceptionBreak.Caught, false);
759 %ChangeBreakOnException(Debug.ExceptionBreak.Uncaught, false);
763 Debug.findScriptBreakPoint = function(break_point_number, remove) {
782 Debug.setScriptBreakPoint = function(type, script_id_or_name,
808 Debug.setScriptBreakPointById = function(script_id,
811 return this.setScriptBreakPoint(Debug.ScriptBreakPointType.ScriptId,
817 Debug.setScriptBreakPointByName = function(script_name,
820 return this.setScriptBreakPoint(Debug.ScriptBreakPointType.ScriptName,
826 Debug.setScriptBreakPointByRegExp = function(script_regexp,
829 return this.setScriptBreakPoint(Debug.ScriptBreakPointType.ScriptRegExp,
835 Debug.enableScriptBreakPoint = function(break_point_number) {
841 Debug.disableScriptBreakPoint = function(break_point_number) {
847 Debug.changeScriptBreakPointCondition = function(
854 Debug.changeScriptBreakPointIgnoreCount = function(
864 Debug.scriptBreakPoints = function() {
869 Debug.clearStepping = function() {
873 Debug.setBreakOnException = function() {
874 return %ChangeBreakOnException(Debug.ExceptionBreak.Caught, true);
877 Debug.clearBreakOnException = function() {
878 return %ChangeBreakOnException(Debug.ExceptionBreak.Caught, false);
881 Debug.isBreakOnException = function() {
882 return !!%IsBreakOnException(Debug.ExceptionBreak.Caught);
885 Debug.setBreakOnUncaughtException = function() {
886 return %ChangeBreakOnException(Debug.ExceptionBreak.Uncaught, true);
889 Debug.clearBreakOnUncaughtException = function() {
890 return %ChangeBreakOnException(Debug.ExceptionBreak.Uncaught, false);
893 Debug.isBreakOnUncaughtException = function() {
894 return !!%IsBreakOnException(Debug.ExceptionBreak.Uncaught);
897 Debug.showBreakPoints = function(f, full) {
921 Debug.scripts = function() {
927 Debug.debuggerFlags = function() {
931 Debug.MakeMirror = MakeMirror;
943 var action = Debug.StepAction.StepIn;
1006 return Debug.DebugEvent.Break;
1091 return Debug.DebugEvent.Exception;
1170 return Debug.DebugEvent.BeforeCompile;
1172 return Debug.DebugEvent.AfterCompile;
1208 return Debug.DebugEvent.NewFunction;
1218 Debug.setBreakPoint(this.func, p || 0);
1522 var action = Debug.StepAction.StepIn;
1539 action = Debug.StepAction.StepIn;
1541 action = Debug.StepAction.StepMin;
1543 action = Debug.StepAction.StepNext;
1545 action = Debug.StepAction.StepOut;
1613 break_point_number = Debug.setBreakPoint(f, line, column, condition);
1626 break_point_number = Debug.setBreakPoint(mirror.value(),
1631 Debug.setScriptBreakPointByName(target, line, column, condition,
1635 Debug.setScriptBreakPointById(target, line, column, condition, groupId);
1638 Debug.setScriptBreakPointByRegExp(target, line, column, condition,
1646 var break_point = Debug.findBreakPoint(break_point_number);
1648 Debug.changeBreakPointIgnoreCount(break_point_number, ignoreCount);
1651 Debug.disableBreakPoint(break_point_number);
1660 if (break_point.type() == Debug.ScriptBreakPointType.ScriptId) {
1663 } else if (break_point.type() == Debug.ScriptBreakPointType.ScriptName) {
1666 } else if (break_point.type() == Debug.ScriptBreakPointType.ScriptRegExp) {
1706 Debug.enableBreakPoint(break_point);
1708 Debug.disableBreakPoint(break_point);
1714 Debug.changeBreakPointCondition(break_point, condition);
1719 Debug.changeBreakPointIgnoreCount(break_point, ignoreCount);
1777 Debug.clearBreakPoint(break_point);
1802 if (break_point.type() == Debug.ScriptBreakPointType.ScriptId) {
1805 } else if (break_point.type() == Debug.ScriptBreakPointType.ScriptName) {
1808 } else if (break_point.type() == Debug.ScriptBreakPointType.ScriptRegExp) {
1820 breakOnExceptions: Debug.isBreakOnException(),
1821 breakOnUncaughtExceptions: Debug.isBreakOnUncaughtException()
1828 Debug.disableAllBreakPoints();
1851 enabled = !Debug.isBreakOnException();
1853 enabled = !Debug.isBreakOnUncaughtException();
1866 %ChangeBreakOnException(Debug.ExceptionBreak.Caught, enabled);
1868 %ChangeBreakOnException(Debug.ExceptionBreak.Uncaught, enabled);
2226 var types = ScriptTypeFlag(Debug.ScriptType.Normal);
2342 if (!Debug.LiveEdit) {
2372 var result_description = Debug.LiveEdit.SetScriptSource(the_script,