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

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

Issue 14294004: Implementing console command 'debug'. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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
« no previous file with comments | « Source/devtools/front_end/DebuggerModel.js ('k') | Source/devtools/protocol.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2011 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused on a \"%s\" Event Listener.", eventNameForUI)); 287 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused on a \"%s\" Event Listener.", eventNameForUI));
288 } else if (details.reason === WebInspector.DebuggerModel.BreakReason.XHR ) { 288 } else if (details.reason === WebInspector.DebuggerModel.BreakReason.XHR ) {
289 this.sidebarPanes.xhrBreakpoints.highlightBreakpoint(details.auxData ["breakpointURL"]); 289 this.sidebarPanes.xhrBreakpoints.highlightBreakpoint(details.auxData ["breakpointURL"]);
290 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused on a XMLHttpRequest.")); 290 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused on a XMLHttpRequest."));
291 } else if (details.reason === WebInspector.DebuggerModel.BreakReason.Exc eption) 291 } else if (details.reason === WebInspector.DebuggerModel.BreakReason.Exc eption)
292 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused on exception: '%s'.", details.auxData.description)); 292 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused on exception: '%s'.", details.auxData.description));
293 else if (details.reason === WebInspector.DebuggerModel.BreakReason.Asser t) 293 else if (details.reason === WebInspector.DebuggerModel.BreakReason.Asser t)
294 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused on assertion.")); 294 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused on assertion."));
295 else if (details.reason === WebInspector.DebuggerModel.BreakReason.CSPVi olation) 295 else if (details.reason === WebInspector.DebuggerModel.BreakReason.CSPVi olation)
296 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused on a script blocked due to Content Security Policy directive: \"%s\".", details. auxData["directiveText"])); 296 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused on a script blocked due to Content Security Policy directive: \"%s\".", details. auxData["directiveText"]));
297 else if (details.reason === WebInspector.DebuggerModel.BreakReason.Debug Command)
298 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused on a debugged function"));
297 else { 299 else {
298 function didGetUILocation(uiLocation) 300 function didGetUILocation(uiLocation)
299 { 301 {
300 var breakpoint = WebInspector.breakpointManager.findBreakpoint(u iLocation.uiSourceCode, uiLocation.lineNumber); 302 var breakpoint = WebInspector.breakpointManager.findBreakpoint(u iLocation.uiSourceCode, uiLocation.lineNumber);
301 if (!breakpoint) 303 if (!breakpoint)
302 return; 304 return;
303 this.sidebarPanes.jsBreakpoints.highlightBreakpoint(breakpoint); 305 this.sidebarPanes.jsBreakpoints.highlightBreakpoint(breakpoint);
304 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Pau sed on a JavaScript breakpoint.")); 306 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Pau sed on a JavaScript breakpoint."));
305 } 307 }
306 if (details.callFrames.length) 308 if (details.callFrames.length)
(...skipping 1001 matching lines...) Expand 10 before | Expand all | Expand 10 after
1308 this.sidebarPanes.scopechain.expand(); 1310 this.sidebarPanes.scopechain.expand();
1309 this.sidebarPanes.jsBreakpoints.expand(); 1311 this.sidebarPanes.jsBreakpoints.expand();
1310 this.sidebarPanes.callstack.expand(); 1312 this.sidebarPanes.callstack.expand();
1311 1313
1312 if (WebInspector.settings.watchExpressions.get().length > 0) 1314 if (WebInspector.settings.watchExpressions.get().length > 0)
1313 this.sidebarPanes.watchExpressions.expand(); 1315 this.sidebarPanes.watchExpressions.expand();
1314 }, 1316 },
1315 1317
1316 __proto__: WebInspector.Panel.prototype 1318 __proto__: WebInspector.Panel.prototype
1317 } 1319 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/DebuggerModel.js ('k') | Source/devtools/protocol.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698