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
elliette opened this issue
Jan 24, 2024
· 1 comment
Labels
area-pkgUsed for miscellaneous pkg/ packages not associated with specific area- teams.dds-dapDDS issues related to the Debug Adapter Protocol (DAP) implementationpkg-ddsFor issues related to the Dart Development Service
When using the Widget Inspector in Flutter DevTools, from the console you can assign the inspected widget to a variable and then perform expression evaluation on that variable:
lrhn
added
area-pkg
Used for miscellaneous pkg/ packages not associated with specific area- teams.
pkg-dds
For issues related to the Dart Development Service
labels
Jan 24, 2024
Yeah, this would be great. I guess there are a few parts to this:
Keeping track of what's inspected (although it's not clear to me what inspected means here.. things selected in the Widget Inspector, or things sent to the "inspect()" call? I think the goal is to stop the inspector from calling "inspect()" so these things might over lap today, but not in the future)
Handling assignment to these variables (detecting the assignment in an evaluation expression, extracting the variable name and adjusting the evaluation expression accordingly)
Handling evaluation of these variables (sending the names and IDs back in scope of the evaluation)
area-pkgUsed for miscellaneous pkg/ packages not associated with specific area- teams.dds-dapDDS issues related to the Debug Adapter Protocol (DAP) implementationpkg-ddsFor issues related to the Dart Development Service
When using the Widget Inspector in Flutter DevTools, from the console you can assign the inspected widget to a variable and then perform expression evaluation on that variable:
(Note this was added by @polina-c in flutter/devtools#5542)
It would be nice to offer the same support when debugging from VS Code, etc. I don't see any way to assign an inspected widget to a variable:
FYI @DanTup
The text was updated successfully, but these errors were encountered: