OLD | NEW |
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 869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
880 */ | 880 */ |
881 function didEvaluateOnCallFrame(error, result, wasThrown) | 881 function didEvaluateOnCallFrame(error, result, wasThrown) |
882 { | 882 { |
883 if (error) { | 883 if (error) { |
884 console.error(error); | 884 console.error(error); |
885 callback(null, false); | 885 callback(null, false); |
886 return; | 886 return; |
887 } | 887 } |
888 callback(result, wasThrown); | 888 callback(result, wasThrown); |
889 } | 889 } |
890 DebuggerAgent.evaluateOnCallFrame(this._payload.callFrameId, code, objec
tGroup, includeCommandLineAPI, doNotPauseOnExceptionsAndMuteConsole, returnByVal
ue, generatePreview, didEvaluateOnCallFrame.bind(this)); | 890 DebuggerAgent.evaluateOnCallFrame(this._payload.callFrameId, code, objec
tGroup, includeCommandLineAPI, doNotPauseOnExceptionsAndMuteConsole, returnByVal
ue, false, generatePreview, didEvaluateOnCallFrame.bind(this)); |
891 }, | 891 }, |
892 | 892 |
893 /** | 893 /** |
894 * @param {function(?Protocol.Error=)=} callback | 894 * @param {function(?Protocol.Error=)=} callback |
895 */ | 895 */ |
896 restart: function(callback) | 896 restart: function(callback) |
897 { | 897 { |
898 /** | 898 /** |
899 * @this {WebInspector.DebuggerModel.CallFrame} | 899 * @this {WebInspector.DebuggerModel.CallFrame} |
900 * @param {?Protocol.Error} error | 900 * @param {?Protocol.Error} error |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
981 var callFrame = this.callFrames[i]; | 981 var callFrame = this.callFrames[i]; |
982 callFrame.dispose(); | 982 callFrame.dispose(); |
983 } | 983 } |
984 } | 984 } |
985 } | 985 } |
986 | 986 |
987 /** | 987 /** |
988 * @type {?WebInspector.DebuggerModel} | 988 * @type {?WebInspector.DebuggerModel} |
989 */ | 989 */ |
990 WebInspector.debuggerModel = null; | 990 WebInspector.debuggerModel = null; |
OLD | NEW |