You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hide more temporary variables when debugging (#2445)
Some variables created by DDC that are not present in the
original source code were being shown by the debugger in the
local scope.
Update the regular expression used to detect temporary variable names.
It has been simplified to: if the variable starts with 't$' or contains
'$35' then it should be hidden.
DDC names it's temporary variables to start with the characters `t$`.
Hiding all of these does hide some valid variable names that could
appear in the original source, but that is the status quo and not
being changed here. In addition some names that are created by the
CFE and added to the program contain an illegal character '#' which
DDC replaces as '$35'. Variables with this sequence in the name can't
appear in the original source so we hide them as well.
This should hide variables synthetically added to support late local
variables.
Copy file name to clipboardExpand all lines: dwds/CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@
4
4
- Respect the value of `pause_isolates_on_start` during page-refreshes. - [#2431](https://github.com/dart-lang/webdev/pull/2431)
5
5
- Fix issue where DAP clients wouldn't resume after a restart. - [#2441](https://github.com/dart-lang/webdev/pull/2441)
6
6
- Add implementation for the VM Service's `getFlagList` API. - [#2438](https://github.com/dart-lang/webdev/pull/2438)
7
+
- Hide more variables from the local scope when debugging. These variables were synthetically added by the compiler to
8
+
support late local variables and don't appear in the original source code. - [#2445](https://github.com/dart-lang/webdev/pull/2445)
0 commit comments