Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: Source/devtools/front_end/DebuggerModel.js

Issue 14294004: Implementing console command 'debug'. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added test. Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 DebuggerWasDisabled: "DebuggerWasDisabled", 78 DebuggerWasDisabled: "DebuggerWasDisabled",
79 DebuggerPaused: "DebuggerPaused", 79 DebuggerPaused: "DebuggerPaused",
80 DebuggerResumed: "DebuggerResumed", 80 DebuggerResumed: "DebuggerResumed",
81 ParsedScriptSource: "ParsedScriptSource", 81 ParsedScriptSource: "ParsedScriptSource",
82 FailedToParseScriptSource: "FailedToParseScriptSource", 82 FailedToParseScriptSource: "FailedToParseScriptSource",
83 BreakpointResolved: "BreakpointResolved", 83 BreakpointResolved: "BreakpointResolved",
84 GlobalObjectCleared: "GlobalObjectCleared", 84 GlobalObjectCleared: "GlobalObjectCleared",
85 CallFrameSelected: "CallFrameSelected", 85 CallFrameSelected: "CallFrameSelected",
86 ExecutionLineChanged: "ExecutionLineChanged", 86 ExecutionLineChanged: "ExecutionLineChanged",
87 ConsoleCommandEvaluatedInSelectedCallFrame: "ConsoleCommandEvaluatedInSelect edCallFrame", 87 ConsoleCommandEvaluatedInSelectedCallFrame: "ConsoleCommandEvaluatedInSelect edCallFrame",
88 BreakpointsActiveStateChanged: "BreakpointsActiveStateChanged" 88 BreakpointsActiveStateChanged: "BreakpointsActiveStateChanged",
89 SetBreakpointRequested: "SetBreakpointRequested"
89 } 90 }
90 91
91 WebInspector.DebuggerModel.BreakReason = { 92 WebInspector.DebuggerModel.BreakReason = {
92 DOM: "DOM", 93 DOM: "DOM",
93 EventListener: "EventListener", 94 EventListener: "EventListener",
94 XHR: "XHR", 95 XHR: "XHR",
95 Exception: "exception", 96 Exception: "exception",
96 Assert: "assert", 97 Assert: "assert",
97 CSPViolation: "CSPViolation" 98 CSPViolation: "CSPViolation"
98 } 99 }
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 247
247 /** 248 /**
248 * @param {DebuggerAgent.BreakpointId} breakpointId 249 * @param {DebuggerAgent.BreakpointId} breakpointId
249 * @param {DebuggerAgent.Location} location 250 * @param {DebuggerAgent.Location} location
250 */ 251 */
251 _breakpointResolved: function(breakpointId, location) 252 _breakpointResolved: function(breakpointId, location)
252 { 253 {
253 this.dispatchEventToListeners(WebInspector.DebuggerModel.Events.Breakpoi ntResolved, {breakpointId: breakpointId, location: location}); 254 this.dispatchEventToListeners(WebInspector.DebuggerModel.Events.Breakpoi ntResolved, {breakpointId: breakpointId, location: location});
254 }, 255 },
255 256
257 /**
258 * @param {DebuggerAgent.Location} location
259 */
260 _setBreakpointRequested: function(location)
261 {
262 this.dispatchEventToListeners(WebInspector.DebuggerModel.Events.SetBrea kpointRequested, {location: location});
263 },
264
256 _globalObjectCleared: function() 265 _globalObjectCleared: function()
257 { 266 {
258 this._setDebuggerPausedDetails(null); 267 this._setDebuggerPausedDetails(null);
259 this._reset(); 268 this._reset();
260 this.dispatchEventToListeners(WebInspector.DebuggerModel.Events.GlobalOb jectCleared); 269 this.dispatchEventToListeners(WebInspector.DebuggerModel.Events.GlobalOb jectCleared);
261 }, 270 },
262 271
263 _reset: function() 272 _reset: function()
264 { 273 {
265 this._scripts = {}; 274 this._scripts = {};
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 { 674 {
666 }, 675 },
667 676
668 /** 677 /**
669 * @param {DebuggerAgent.BreakpointId} breakpointId 678 * @param {DebuggerAgent.BreakpointId} breakpointId
670 * @param {DebuggerAgent.Location} location 679 * @param {DebuggerAgent.Location} location
671 */ 680 */
672 breakpointResolved: function(breakpointId, location) 681 breakpointResolved: function(breakpointId, location)
673 { 682 {
674 this._debuggerModel._breakpointResolved(breakpointId, location); 683 this._debuggerModel._breakpointResolved(breakpointId, location);
684 },
685
686 /**
687 * @param {DebuggerAgent.Location} location
688 */
689 setBreakpointRequested: function(location)
690 {
691 this._debuggerModel._setBreakpointRequested(location);
675 } 692 }
676 } 693 }
677 694
678 /** 695 /**
679 * @constructor 696 * @constructor
680 * @param {WebInspector.Script} script 697 * @param {WebInspector.Script} script
681 * @param {DebuggerAgent.CallFrame} payload 698 * @param {DebuggerAgent.CallFrame} payload
682 */ 699 */
683 WebInspector.DebuggerModel.CallFrame = function(script, payload) 700 WebInspector.DebuggerModel.CallFrame = function(script, payload)
684 { 701 {
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 var callFrame = this.callFrames[i]; 857 var callFrame = this.callFrames[i];
841 callFrame.dispose(); 858 callFrame.dispose();
842 } 859 }
843 } 860 }
844 } 861 }
845 862
846 /** 863 /**
847 * @type {?WebInspector.DebuggerModel} 864 * @type {?WebInspector.DebuggerModel}
848 */ 865 */
849 WebInspector.debuggerModel = null; 866 WebInspector.debuggerModel = null;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698