OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012, the Dart project authors. | 2 * Copyright (c) 2012, the Dart project authors. |
3 * | 3 * |
4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u
se this file except | 4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u
se this file except |
5 * in compliance with the License. You may obtain a copy of the License at | 5 * in compliance with the License. You may obtain a copy of the License at |
6 * | 6 * |
7 * http://www.eclipse.org/legal/epl-v10.html | 7 * http://www.eclipse.org/legal/epl-v10.html |
8 * | 8 * |
9 * Unless required by applicable law or agreed to in writing, software distribut
ed under the License | 9 * Unless required by applicable law or agreed to in writing, software distribut
ed under the License |
10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K
IND, either express | 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K
IND, either express |
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 | 450 |
451 return classValue; | 451 return classValue; |
452 } | 452 } |
453 | 453 |
454 protected IValue getGlobalsScope() throws DebugException { | 454 protected IValue getGlobalsScope() throws DebugException { |
455 if (globalScopeValue != null) { | 455 if (globalScopeValue != null) { |
456 return globalScopeValue; | 456 return globalScopeValue; |
457 } | 457 } |
458 | 458 |
459 for (WebkitScope scope : webkitFrame.getScopeChain()) { | 459 for (WebkitScope scope : webkitFrame.getScopeChain()) { |
460 if (scope.isGlobal()) { | 460 if (scope.isLibraries()) { |
461 globalScopeValue = new DartiumDebugValue(getTarget(), null, scope.getObj
ect()); | 461 globalScopeValue = new DartiumDebugValue(getTarget(), null, scope.getObj
ect()); |
462 break; | 462 break; |
463 } | 463 } |
464 } | 464 } |
465 | 465 |
466 return globalScopeValue; | 466 return globalScopeValue; |
467 } | 467 } |
468 | 468 |
469 protected String getMappedLocationPath() { | 469 protected String getMappedLocationPath() { |
470 SourceMapManager.SourceLocation targetLocation = getMappedLocation(); | 470 SourceMapManager.SourceLocation targetLocation = getMappedLocation(); |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 return sourceMapManager.getMappingFor( | 558 return sourceMapManager.getMappingFor( |
559 file, | 559 file, |
560 location.getLineNumber(), | 560 location.getLineNumber(), |
561 location.getColumnNumber()); | 561 location.getColumnNumber()); |
562 } else { | 562 } else { |
563 return null; | 563 return null; |
564 } | 564 } |
565 } | 565 } |
566 | 566 |
567 } | 567 } |
OLD | NEW |