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
{{ message }}
Repository navigation
"Paused in debugger" message not appearing after hot-restart #7619
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?
Activity
hkarmoush commentedon Nov 16, 2026
I looked into this. After a hot restart of a non-web app the main isolate exits and a new one starts, so
mainIsolateStateis a newIsolateStatewith a newisPausednotifier.FloatingDebuggerControlsonly readsmainIsolateState?.isPausedininitState, 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,DebuggerStatusand the inspector tree use the same binding.I'd like to fix it by exposing a stable "main isolate paused" listenable on
IsolateManagerthat followsmainIsolate, and moving those call sites to it. @srawlins @elliette does that sound right, or would you rather keep it local to the widgets?