Unpause and remove breakpoints when detaching from Flutter process with DAP (#101695)
This commit is contained in:
@@ -205,6 +205,9 @@ class FlutterDebugAdapter extends DartDebugAdapter<FlutterLaunchRequestArguments
|
||||
/// quickly and therefore may leave orphaned processes.
|
||||
@override
|
||||
Future<void> disconnectImpl() async {
|
||||
if (isAttach) {
|
||||
await preventBreakingAndResume();
|
||||
}
|
||||
terminatePids(ProcessSignal.sigkill);
|
||||
}
|
||||
|
||||
@@ -379,6 +382,9 @@ class FlutterDebugAdapter extends DartDebugAdapter<FlutterLaunchRequestArguments
|
||||
/// Called by [terminateRequest] to request that we gracefully shut down the app being run (or in the case of an attach, disconnect).
|
||||
@override
|
||||
Future<void> terminateImpl() async {
|
||||
if (isAttach) {
|
||||
await preventBreakingAndResume();
|
||||
}
|
||||
terminatePids(ProcessSignal.sigterm);
|
||||
await _process?.exitCode;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user