c6aa3a22a7
In the VM, a single script can belong to several libraries because of mixins. Previously, when setting a breakpoint, it found the function to set the breakpoint in by taking the "scripts library" (script.FindLibrary) and then tried to find a function in that library that matched. Sometimes it found the "wrong" library and the breakpoint thus wasn't set. This CL changes that so it goes though all libraries, finds all maching libraries and tries all of them. This solves the issue at hand, but might not solve all corner-cases. This added test demonstrates the resolved case where before it would just say that it couldn't add the breakpoint on line 13. Change-Id: Ie44b0dfb4ea3e8de767d1867ec432b2aef429b76 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/133592 Commit-Queue: Jens Johansen <jensj@google.com> Reviewed-by: Ben Konyi <bkonyi@google.com>
8 lines
300 B
Dart
8 lines
300 B
Dart
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
import "breakpoints_with_mixin_lib3.dart";
|
|
|
|
class Test2 extends Object with Foo {}
|