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 1070 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1081 return this.debuggerModel.scriptForId(this.scriptId); | 1081 return this.debuggerModel.scriptForId(this.scriptId); |
1082 } | 1082 } |
1083 | 1083 |
1084 continueToLocation() { | 1084 continueToLocation() { |
1085 this.debuggerModel._agent.continueToLocation(this.payload()); | 1085 this.debuggerModel._agent.continueToLocation(this.payload()); |
1086 } | 1086 } |
1087 | 1087 |
1088 /** | 1088 /** |
1089 * @return {string} | 1089 * @return {string} |
1090 */ | 1090 */ |
| 1091 uniqueScriptId() { |
| 1092 return this.debuggerModel.target().id() + ':' + this.scriptId; |
| 1093 } |
| 1094 |
| 1095 /** |
| 1096 * @return {string} |
| 1097 */ |
1091 id() { | 1098 id() { |
1092 return this.debuggerModel.target().id() + ':' + this.scriptId + ':' + this.l
ineNumber + ':' + this.columnNumber; | 1099 return this.uniqueScriptId() + ':' + this.lineNumber + ':' + this.columnNumb
er; |
1093 } | 1100 } |
1094 }; | 1101 }; |
1095 | 1102 |
1096 /** | 1103 /** |
1097 * @unrestricted | 1104 * @unrestricted |
1098 */ | 1105 */ |
1099 SDK.DebuggerModel.BreakLocation = class extends SDK.DebuggerModel.Location { | 1106 SDK.DebuggerModel.BreakLocation = class extends SDK.DebuggerModel.Location { |
1100 /** | 1107 /** |
1101 * @param {!SDK.DebuggerModel} debuggerModel | 1108 * @param {!SDK.DebuggerModel} debuggerModel |
1102 * @param {string} scriptId | 1109 * @param {string} scriptId |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1462 stack.callFrames.shift(); | 1469 stack.callFrames.shift(); |
1463 if (previous && (!stack.callFrames.length && !stack.promiseCreationFrame)) | 1470 if (previous && (!stack.callFrames.length && !stack.promiseCreationFrame)) |
1464 previous.parent = stack.parent; | 1471 previous.parent = stack.parent; |
1465 else | 1472 else |
1466 previous = stack; | 1473 previous = stack; |
1467 stack = stack.parent; | 1474 stack = stack.parent; |
1468 } | 1475 } |
1469 return asyncStackTrace; | 1476 return asyncStackTrace; |
1470 } | 1477 } |
1471 }; | 1478 }; |
OLD | NEW |