firebase - 为什么我的应用程序在 firebase 抛出异常时停止?

标签 firebase flutter firebase-authentication

我正在使用 flutter 的 firebase 身份验证插件,当我输入一个不存在的用户时,它会抛出平台异常。 Code

好的..但除非我点击继续(f5) Continue 该应用程序已停止。当我继续时,该应用程序运行良好并显示 snackbar 。

我做错了什么吗?我应该使用 catchError 吗? (有同样的问题)

我真的不知道这是否是预期的行为。

提前谢谢你。

最佳答案

检查您的 Visual Studio Code 断点设置,如下图所示。您可能选中了“所有异常(exception)”。 Visual Studio Code screenshot

关于firebase - 为什么我的应用程序在 firebase 抛出异常时停止?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56391576/

相关文章:

flutter - 如何在 flutter 中拦截 AppBar 中的后退按钮

javascript - 如何在 Firebase 注册期间上传并分配个人资料图片给用户?

android firebase 12.0.0 - mAuth.getCurrentUser().getProvider() 方法已删除,如何获取提供者名称?

email - 从 Firebase webapp 发送邮件

firebase - 无法将 NSNull 类型的 native AsyncStorage firebase JSON 值 '<null>' 转换为 NSString

dart - 跳转到 PageView() 中的另一个页面不起作用

flutter - 判断同一个gmail登录用户数,flutter cloudfirestore

ios - 无法在 Firebase 项目设置中添加团队 ID

node.js - 为 Node.js 客户端应用程序保留 Firebase 用户

flutter - 如何在 flutter 中为 DraggableScrollableSheet 提供准确的高度值?