dart-sdk/runtime/observatory_2
Bruno Leroux 2481cf76f5 [ VM / Service ] Fix 'dart:' scripts lookup
Bug: VM service `addBreakpointWithScriptUri` and `addBreakpoint` don't add valid breakpoints for code in `dart:` libraries. See #47204

This PR contains :
- a new test : 'service/break_on_dart_colon_test.dart', that checks several URIs to register breakpoints in `dart:` libs.
- a fix in `Debugger::SetBreakpointAtLineCol` to make it calls `Library::LookupScript'` with the right value for `useResolvedUri` parameter.

Fixes https://github.com/dart-lang/sdk/issues/47204

TEST=runtime/observatory/tests/service/break_on_dart_colon_test.dart

Change-Id: Id3d6722c278e3238202a9d84a0d34612b957035c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213766
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2021-09-24 01:20:38 +00:00
..
bin Copy Dart 2 version of Observatory and service tests. 2020-10-07 22:20:25 +00:00
lib [ Observatory ] Ignore unsafe_html lint in Observatory source 2021-09-01 20:47:33 +00:00
tests [ VM / Service ] Fix 'dart:' scripts lookup 2021-09-24 01:20:38 +00:00
tool Copy Dart 2 version of Observatory and service tests. 2020-10-07 22:20:25 +00:00
web [vm] Make naming more consistent when converting between handles, tagged and untagged pointers. 2021-01-15 23:32:02 +00:00
.gitignore Copy Dart 2 version of Observatory and service tests. 2020-10-07 22:20:25 +00:00
analysis_options.yaml [SDK] Removes non-exiting tests from .status 2021-02-04 06:46:13 +00:00
BUILD.gn [build] Remove expensive use of make_version.py for unused OBS_VER. 2021-04-26 22:51:08 +00:00
HACKING.md Copy Dart 2 version of Observatory and service tests. 2020-10-07 22:20:25 +00:00
observatory_sources.gni [build] Remove expensive use of make_version.py for unused OBS_VER. 2021-04-26 22:51:08 +00:00
pubspec.yaml [VM] [CFE]: Expression compilation inside extension method 2021-09-10 12:02:57 +00:00
update_sources.py [infra] Migrate scripts to python3 2021-04-15 10:10:20 +00:00