diag: FlutterError.onError 加 CK_CTX (widget 上下文) 定位 RangeError 来源
This commit is contained in:
@@ -36,6 +36,7 @@ void main() {
|
||||
FlutterError.onError = (details) {
|
||||
FlutterError.presentError(details);
|
||||
print('CK_ERROR: ${details.exceptionAsString()}');
|
||||
print('CK_CTX: ${details.context.toString()}');
|
||||
print('CK_STACK: ${details.stack}');
|
||||
};
|
||||
// Enable configureApp will cause route problem.
|
||||
|
||||
Reference in New Issue
Block a user