Skip to content

"Paused in debugger" message not appearing after hot-restart #7619

Open

Description

@elliette

Note: This is only occurring for non-web apps, for web apps the "Paused in debugger" message is appearing correctly

Steps to repro:

  1. set a breakpoint in an app's main method
  2. navigate to the Inspector panel
  3. click hot-restart to restart the app
  4. the Inspector panel is blank (because it can't be loaded while paused) but no banner appears to tell the user that the app is paused
  5. Navigate to debugger panel to see that the app is paused
  6. Go back to inspector panel, now you see the banner

paused 2

Activity

  1. added
    P2
    on Apr 18, 2024
  2. added
    contributions welcome
    and removed on Oct 15, 2026
  3. hkarmoush commented on Nov 16, 2026

    @hkarmoush
    Contributor

    I looked into this. After a hot restart of a non-web app the main isolate exits and a new one starts, so mainIsolateState is a new IsolateState with a new isPaused notifier. FloatingDebuggerControls only reads mainIsolateState?.isPaused in initState, so it keeps listening to the old, disposed notifier and misses the pause on the new isolate. Switching to the Debugger tab and back recreates the widget, which is why the banner shows up then. Web is unaffected because DDC hot restart keeps the isolate.

    I reproduced this with a unit test on the real IsolateManager. debugger/controls.dart, DebuggerStatus and the inspector tree use the same binding.

    I'd like to fix it by exposing a stable "main isolate paused" listenable on IsolateManager that follows mainIsolate, and moving those call sites to it. @srawlins @elliette does that sound right, or would you rather keep it local to the widgets?

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

    P2contributions welcomedevtools-inspector-screen

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions