Skip to content

DevTools attach to main monarch app instead of a story #135

@ezmegy

Description

@ezmegy

I can't seem to debug any stories in DevTools.
Not sure yet if this is a bug or just me missing something though...

Whenever I press the "Launch DevTools..." button, it seems to attach to the main Monarch app instead of the story and I can only debug that but not stories.

I have monarch v3.7.0 flutter package and v2.2.2 binary installed on a Mac.

Minimal repro:

  • monarch run
  • select "primary" from the sample_button_stories
  • press Launch DevTools...

In DevTools, Flutter Inspector

  • the console says the active story id was set properly to sample_button_stories.dart
  • but the Widget Tree that was loaded is the MonarchControllerApp's in and
    Switching to the Debugger tab
  • the monarch_controller_main.dart file is loaded and
  • can't open the story's file (cmd + P and then searching for "sample_button")

See the screenshots of these below.

I've tried restarting/reloading the stories and DevTools, didn't seem to help.

Any pointers what could be wrong?

Screenshot 2023-11-07 at 11 12 15

Screenshot 2023-11-07 at 11 13 07

Metadata

Metadata

Assignees

No one assigned

    Labels

    macosRelated to the macOS operating system

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions