| 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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 if (eventData.script().data() === "injected-script") | 264 if (eventData.script().data() === "injected-script") |
| 265 return; | 265 return; |
| 266 eventData.script().setSource(source); | 266 eventData.script().setSource(source); |
| 267 } | 267 } |
| 268 | 268 |
| 269 DebuggerScript.getScriptName = function(eventData) | 269 DebuggerScript.getScriptName = function(eventData) |
| 270 { | 270 { |
| 271 return eventData.script().script_.nameOrSourceURL(); | 271 return eventData.script().script_.nameOrSourceURL(); |
| 272 } | 272 } |
| 273 | 273 |
| 274 DebuggerScript.getBreakpointNumbers = function(eventData) |
| 275 { |
| 276 var breakpoints = eventData.breakPointsHit(); |
| 277 var numbers = []; |
| 278 if (!breakpoints) |
| 279 return numbers; |
| 280 |
| 281 for (var i = 0; i < breakpoints.length; i++) { |
| 282 var breakpoint = breakpoints[i]; |
| 283 var scriptBreakPoint = breakpoint.script_break_point(); |
| 284 numbers.push(scriptBreakPoint ? scriptBreakPoint.number() : breakpoint.n
umber()); |
| 285 } |
| 286 return numbers; |
| 287 } |
| 288 |
| 274 DebuggerScript._frameMirrorToJSCallFrame = function(frameMirror, callerFrame) | 289 DebuggerScript._frameMirrorToJSCallFrame = function(frameMirror, callerFrame) |
| 275 { | 290 { |
| 276 // Get function name. | 291 // Get function name. |
| 277 var func; | 292 var func; |
| 278 try { | 293 try { |
| 279 func = frameMirror.func(); | 294 func = frameMirror.func(); |
| 280 } catch(e) { | 295 } catch(e) { |
| 281 } | 296 } |
| 282 var functionName; | 297 var functionName; |
| 283 if (func) | 298 if (func) |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 break; | 374 break; |
| 360 case ScopeType.Block: | 375 case ScopeType.Block: |
| 361 // Unsupported yet. Mustn't be reachable. | 376 // Unsupported yet. Mustn't be reachable. |
| 362 break; | 377 break; |
| 363 } | 378 } |
| 364 return scopeObject; | 379 return scopeObject; |
| 365 } | 380 } |
| 366 | 381 |
| 367 return DebuggerScript; | 382 return DebuggerScript; |
| 368 })(); | 383 })(); |
| OLD | NEW |