Home | History | Annotate | Download | only in src

Lines Matching defs:Debug

66     var mirror = new $debug.ObjectMirror(current);
81 var Debug = {};
84 // Debug events which can occour in the V8 JavaScript engine. These originate
85 // from the API include file v8-debug.h.
86 Debug.DebugEvent = { Break: 1,
94 Debug.ScriptType = { Native: 0,
101 Debug.ScriptCompilationType = { Host: 0,
107 Debug.ScopeType = { Global: 0,
115 // Current debug state.
117 Debug.State = {
124 var trace_debug_json = false; // Tracing all debug json packets?
135 // Copied from debug-delay.js. This is needed below:
190 Debug.State.currentSourceLine = body.sourceLine;
191 Debug.State.displaySourceStartLine = -1;
192 Debug.State.displaySourceEndLine = -1;
193 Debug.State.currentFrame = 0;
211 Debug.State.currentSourceLine = body.sourceLine;
212 Debug.State.displaySourceStartLine = -1;
213 Debug.State.displaySourceEndLine = -1;
214 Debug.State.currentFrame = 0;
217 Debug.State.currentSourceLine = -1;
218 Debug.State.displaySourceStartLine = -1;
219 Debug.State.displaySourceEndLine = -1;
220 Debug.State.currentFrame = kNoFrame;
243 details.text = 'Unknown debug event ' + response.event();
400 (Debug.State.currentFrame + 1));
407 (Debug.State.currentFrame - 1));
624 if (Debug.State.currentFrame == kNoFrame) {
857 if (Debug.State.displaySourceEndLine == -1) {
860 Debug.State.displaySourceEndLine = Debug.State.currentSourceLine - 5;
864 Debug.State.displaySourceStartLine = Debug.State.currentSourceLine + 1;
867 var from = Debug.State.displaySourceEndLine + 1;
874 from = Debug.State.displaySourceStartLine - lines;
881 Debug.State.displaySourceStartLine = from;
882 Debug.State.displaySourceEndLine = from + lines - 1;
894 var from = Debug.State.currentSourceLine - 5;
934 request.arguments.types = ScriptTypeFlag(Debug.ScriptType.Native);
938 request.arguments.types = ScriptTypeFlag(Debug.ScriptType.Extension);
943 ScriptTypeFlag(Debug.ScriptType.Normal) |
944 ScriptTypeFlag(Debug.ScriptType.Native) |
945 ScriptTypeFlag(Debug.ScriptType.Extension);
1498 } else if (args === 'debug json' || args === 'json' || args === 'packets') {
1500 print('Tracing of debug json packets ' +
1613 // hidden command: trace debug json - toggles tracing of debug json packets
1673 case Debug.ScopeType.Global:
1677 case Debug.ScopeType.Local:
1680 case Debug.ScopeType.With:
1684 case Debug.ScopeType.Catch:
1688 case Debug.ScopeType.Closure:
2083 Debug.State.currentSourceLine = body.line;
2084 Debug.State.currentFrame = body.index;
2085 Debug.State.displaySourceStartLine = -1;
2086 Debug.State.displaySourceEndLine = -1;
2178 if (current_line == Debug.State.currentSourceLine + 1) {
2208 if (body[i].compilationType == Debug.ScriptCompilationType.Eval
2217 Debug.ScriptCompilationType.JSON) {
2219 } else { // body[i].compilation == Debug.ScriptCompilationType.Host
2227 if (body[i].type == Debug.ScriptType.Native) {
2229 } else if (body[i].type == Debug.ScriptType.Extension) {