Stop debugger when iOS app crashes#68844
Merged
fluttergithubbot merged 1 commit intoflutter:masterfrom Oct 23, 2020
Merged
Conversation
jmagman
commented
Oct 23, 2020
| }); | ||
|
|
||
| testWithoutContext('device locked', () async { | ||
| testWithoutContext('unknown app launch error', () async { |
Member
Author
There was a problem hiding this comment.
Copy paste problem, this was a duplicate and incorrect name.
jmagman
commented
Oct 23, 2020
| // messages to the log reader until it exits to capture crash dumps. | ||
| _logger.printTrace(line); | ||
| if (!debuggerCompleter.isCompleted) { | ||
| debuggerCompleter.complete(false); |
Member
Author
There was a problem hiding this comment.
This is now completed after the process exits.
flutter/packages/flutter_tools/lib/src/ios/ios_deploy.dart
Lines 355 to 357 in acde65d
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.