-
Notifications
You must be signed in to change notification settings - Fork 340
Closed
flutter/flutter
#93411Labels
in debuggingRelates to the debug adapter or process of running debug sessionsRelates to the debug adapter or process of running debug sessionsis bug
Milestone
Description
Describe the bug
First, check the All Exceptions and Uncaught Exceptions setting at debug panel.
Then debug the following example code. When debugger stoped at exception in function a, press continue button, the debugger will stoped at catch block in function b. Finally, click restart button, debugger will run into endless waiting.
import 'package:flutter/material.dart';
void a() {
throw Exception('a');
}
void b() {
try {
a();
} catch (e) {
throw Exception('b');
}
}
void c() {
try {
b();
} catch (e) {
throw Exception('c');
}
}
void main() {
runApp(App());
}
class App extends StatelessWidget {
@override
Widget build(BuildContext context) {
c();
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Study Flutter',
theme: ThemeData(
primarySwatch: Colors.green,
),
home: Container(),
);
}
}
Expected behavior
After I click the restart button, debugger should stopped at exception in function a
Versions (please complete the following information):
- VS Code version: 1.58.0-insider
- Dart extension version: 2.2.0
- Dart/Flutter SDK version: 3.23.1
2shrestha22, kevinxxq and lslv1243
Metadata
Metadata
Assignees
Labels
in debuggingRelates to the debug adapter or process of running debug sessionsRelates to the debug adapter or process of running debug sessionsis bug
