-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Stop debugger when iOS app crashes #68844
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
Conversation
| }); | ||
|
|
||
| testWithoutContext('device locked', () async { | ||
| testWithoutContext('unknown app launch error', () async { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copy paste problem, this was a duplicate and incorrect name.
| // messages to the log reader until it exits to capture crash dumps. | ||
| _logger.printTrace(line); | ||
| if (!debuggerCompleter.isCompleted) { | ||
| debuggerCompleter.complete(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is now completed after the process exits.
flutter/packages/flutter_tools/lib/src/ios/ios_deploy.dart
Lines 355 to 357 in acde65d
| if (!debuggerCompleter.isCompleted) { | |
| debuggerCompleter.complete(false); | |
| } |
jonahwilliams
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Exit
ios-deploydebugger process when the app crashes. This will close the log line stream, which closes the log reader stream, which closes the protocol discovery device log stream.In conjunction with #68756 that will return null for the
urilog scraping discovery, which will eventually return an app launch failure error.Also, continue passing lldb logs to the log reader until
ios-deployexits in order to print crash logs.Related Issues
#44944
#68756
Tests
ios-deploy test
app crash, update tests to logging after the process stops to catch crash logs.