Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
yahu1031 opened this issue May 23, 2021 · 3 comments
Closed

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

yahu1031 opened this issue May 23, 2021 · 3 comments
Labels
in cli Relates to running Dart CLI scripts in debugger Relates to the debug adapter or process of launching a debug session is bug
Milestone

Comments

@yahu1031
Copy link

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)
@DanTup
Copy link
Member

DanTup commented May 24, 2021

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!

@DanTup DanTup added the awaiting info Requires more information from the customer to progress label May 24, 2021
@yahu1031
Copy link
Author

@DanTup Here is the log file - dart.log

@DanTup
Copy link
Member

DanTup commented May 24, 2021

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

@DanTup DanTup closed this as completed in dee0434 May 24, 2021
@DanTup DanTup added this to the v3.23.0 milestone May 24, 2021
@DanTup DanTup added in cli Relates to running Dart CLI scripts in debugger Relates to the debug adapter or process of launching a debug session and removed awaiting info Requires more information from the customer to progress labels May 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in cli Relates to running Dart CLI scripts in debugger Relates to the debug adapter or process of launching a debug session is bug
Projects
None yet
Development

No branches or pull requests

2 participants