Skip to content

Support expression evaluation when running #1980

Open
@annagrin

Description

@annagrin

Expression evaluation in a debugger while running is supported currently on other platforms. Investigate what needs to be done to support it in dwds.

  • Dart code allows evaluation in a root library when app is not paused, but dart DevTools does not

  • dwds does not always give correct root library

    • Add root library to ddc metadata (probably in a new app-level metadata section?)
  • Question: is it possible to support general eval while running (ie pick/find a library to evaluate in?)

    • Should be possible in DevTools, would need UI changes (to pick the library).
    • Is it possible to find the library automatically?

VSCode debugging on MacOS

image

VSCode debugging on chrome

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions