Skip to content

Stopping a Dart CLI debug session during a test run while at a breakpoint when using SDK DAPs does not work #4447

Closed

Description

@DanTup

Using the branch here, running the .solo() test times out during cleanup:

https://github.com/Dart-Code/Dart-Code/tree/bug-repro
5099a4d

It seems that the initial terminateRequest never completes, with just "Waiting for current test to finish".

We're supposed to unpause when we try to shutdown, so the tests should complete quite quickly, and then termination should complete normally. That doesn't seem to be happening though.

Activity

  1. added this to the v3.62.0 milestone on Mar 20, 2023
  2. added
    in debuggingRelates to the debug adapter or process of running debug sessions
    on Mar 20, 2023
  3. DanTup commented on Mar 20, 2023

    @DanTup
    MemberAuthor

    Reproducible outside of the DC tests:

    import 'package:test/test.dart';
    
    void main() {
      group('group', () {
        test('test', () {
          expect(1, 2); // Hit breakpoint here then press Stop
        });
      });
    }
    
  4. changed the title [-]Terminating during a test run with SDK DAPs does not appear to resume and quit[/-] [+]Stopping a Dart CLI debug session during a test run while at a breakpoint when using SDK DAPs does not work[/+] on Mar 20, 2023
  5. DanTup commented on Mar 20, 2023

    @DanTup
    MemberAuthor
  6. added
    relies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become available
    on Mar 20, 2023
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 sessionsis bugrelies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become available

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions