Skip to content

Terminating debug session don't goes off on restart #3358

Closed

Description

@yahu1031

Describe the bug

When I debug the code and restart the program, Terminating debug session is not going off from bottom right corner.

To Reproduce
Steps to reproduce the behavior:

  1. Use any sample code in dart and run once and restart again
    Eg:
import 'dart:developer' as console;
import 'package:shelf/shelf.dart' show Request, Response;

import 'package:shelf/shelf_io.dart' as shelf_io;
import 'package:shelf_router/shelf_router.dart' show Router;

Future<void> main() async {
  /// Router object
  Router app = Router();

  app.get('/', (Request request) {
    return Response.ok(
      'Hey there 👋🏻',
      headers: {'Content-Type': 'text/plain'},
    );
  });

  /// Serving
  await shelf_io.serve(app, 'localhost', 1031).then((value) => console
      .log('API running at http://${value.address}:${value.port} 🔥🔥🔥'));
}

Expected behavior
It must not show that Terminating debug session.... notification

Screenshots
image

Versions (please complete the following information):

  • VS Code version: 1.56.2
  • Gitpod code version: 1.55.1
  • Dart extension version: v3.22.0
  • Dart SDK version: 2.13.0 (stable)
  • Flutter SDK version: 2.2.0 (stable)

Activity

  1. DanTup commented on May 24, 2021

    @DanTup
    Member

    I'm not able to reproduce this - are you able to capture a log file using this sample?

    • Run the Dart: Capture Debugging Logs command
    • Run the script
    • Click the Stop button to try to terminate the debug session
    • Wait for at least 10-15 seconds to ensure it's not just slow
    • Click Cancel on the logging notification to stop logging and open the log file

    Thanks!

  2. added
    awaiting infoRequires more information from the customer to progress
    on May 24, 2021
  3. yahu1031 commented on May 24, 2021

    @yahu1031
    Author

    @DanTup Here is the log file - dart.log

  4. DanTup commented on May 24, 2021

    @DanTup
    Member

    Thanks! I was able to reproduce this from the log - I'd misread the original report. It'll be fixed in the next release.

  5. added this to the v3.23.0 milestone on May 24, 2021
  6. added
    in dartRelates to running Dart programs
    in debuggingRelates to the debug adapter or process of running debug sessions
    and removed
    awaiting infoRequires more information from the customer to progress
    on May 24, 2021
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 dartRelates to running Dart programsin debuggingRelates to the debug adapter or process of running debug sessionsis bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions