Uh oh!
There was an error while loading. Please reload this page.
Add support for displaying coverage in CodeView - #4700
Conversation
This changes adds a toggle to the debugger screen that shows coverage information for the currently selected script. Fixesflutter#3862
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| final executionPointIndent = scaleByFontFactor(10.0); | ||
| Color? color; | ||
| if (coverageHit != null && isExecutable) { |
There was a problem hiding this comment.
is the isExecutable check enough here? In your screenshot it looked like a line with only an end bracket } came back as executable (it was highlighted in red)
There was a problem hiding this comment.
Yeah, I don't think it is. I'll look at what Observatory does.
There was a problem hiding this comment.
Observatory is using some private fields to further refine what should be included in coverage information, but this change at least won't include the end bracket anymore.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
bkonyi
commented
Nov 4, 2022
bkonyi
commented
Nov 4, 2022
| isSelected: selected, | ||
| hideBorder: true, | ||
| outlined: false, | ||
| shape: const RoundedRectangleBorder( |
There was a problem hiding this comment.
why do we have to manually add this for this button and not for all the other buttons in DevTools? OutlinedButton should have this by default
There was a problem hiding this comment.




This changes adds a toggle to the debugger screen that shows coverage information for the currently selected script.
Fixes#3862
Coverage enabled:

Coverage disabled:
