Skip to content

Hot Restart doesn't resume debugger state #1994

Closed

Description

@DanTup

See flutter/flutter#13396 (comment)

When we handle Hot Restart, we never tell VS Code we've continued, so it gets stuck in a pause state.

Activity

  1. added
    in debuggingRelates to the debug adapter or process of running debug sessions
    on Sep 16, 2019
  2. added this to the v3.5.0 milestone on Sep 16, 2019
  3. DanTup commented on Sep 16, 2019

    @DanTup
    MemberAuthor

    @escamoteur @nickmeinhold

    Alpha build here if you want to try it out to ensure it solves all your issues:

    https://github.com/Dart-Code/Dart-Code/releases/tag/v3.5.0-alpha.3

  4. escamoteur commented on Sep 16, 2019

    @escamoteur
  5. maks commented on Sep 16, 2019

    @maks

    @DanTup and @escamoteur thanks for following up on this!
    Sorry I didnt follow up my original comment on 13396. I'm pretty sure this is the issue I was seeing, I'm trying out the alpha.3 build now.

  6. szotp commented on Apr 9, 2020

    @szotp
    Contributor

    Issue persists if the breakpoint was to be reached multiple times, here is minimal sample:

    import 'package:flutter/material.dart';
    
    void main() {
      foo();
      foo();
      runApp(SizedBox());
    }
    
    void foo() {
      // put breakpoint here
      print('foo');
    }

    Tested on stable

    [✓] Flutter (Channel stable, v1.12.13+hotfix.8, on Mac OS X 10.15.2 19C57, locale en-GB)
     
    [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    [✓] Xcode - develop for iOS and macOS (Xcode 11.3)
    [!] Android Studio (version 3.6)
        ✗ Flutter plugin not installed; this adds Flutter specific functionality.
        ✗ Dart plugin not installed; this adds Dart specific functionality.
    [✓] VS Code (version 1.44.0)
    [✓] Connected device (1 available)
    

    And master

    [✓] Flutter (Channel master, v1.18.0-5.0.pre.46, on Mac OS X 10.15.2 19C57, locale en-GB)
    

    Should I create ticket here or in flutter repo?

  7. DanTup commented on Apr 9, 2020

    @DanTup
    MemberAuthor

    @szotp please create an issue here, including exact details of the actions you're performing. Thanks!

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