Skip to content

"Inspect Widget" does not navigate to code in IDE when using new DAPs #4193

Closed

Description

@DanTup

The new DAPs don't handle the "inspect" event that was used to navigate the editor to code when inspecting widgets.

Perhaps it's worth considering a more specific event for navigating IDEs, since some users user inspect() for wanting to dump variables to the debug console and there's some overlap here (the API also requires a number of calls to get the widget summary which complicates things).

@jacob314 what's involved in creating a new event for this? Should I implement the old way in the new DAPs for now, or is it fairly straight-forward? (I think it would likely want to be a broadcast-style event and not a service extension that the DAP registers, to allow for multiple editors to be connected to the debugger and all receive it?).

Activity

  1. added
    in flutterRelates to running Flutter apps
    in debuggingRelates to the debug adapter or process of running debug sessions
    on Oct 3, 2022
  2. added this to the v3.52.0 milestone on Oct 3, 2022
  3. modified the milestones: v3.52.0, v3.54.0 on Oct 31, 2022
  4. modified the milestones: v3.54.0, v3.56.0 on Nov 28, 2022
  5. modified the milestones: v3.56.0, On Deck on Dec 12, 2022
  6. modified the milestones: On Deck, v3.58.0 on Dec 21, 2022
  7. added a commit that references this issue on Jan 9, 2023
    31594c5
  8. modified the milestones: v3.58.0, v3.60.0 on Jan 17, 2023
  9. added a commit that references this issue on Jan 25, 2023
    c213a09
  10. DanTup commented on Jan 25, 2023

    @DanTup
    MemberAuthor

    @jacob314 @CoderDake @helin24 FYI, all the relevant parts for this have landed now. To have the fix you'll need:

    • a recent Flutter master (at least flutter/flutter@06909cc)
    • the pre-release Dart extension (published today, v3.59.20230125)

    Please let me know if you still see issues with this with at least those versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in debuggingRelates to the debug adapter or process of running debug sessionsin flutterRelates to running Flutter appsis bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions