Search code examples
flutterdarterror-handlingfirebase-authenticationtry-catch

try and catch error during using firebase authentication


My try and catch is not working the catch func is not handling the error, I have copied the same code recommended by google to use firebase for authentication but it's not working: enter image description here

I am expecting my catch func to handle the firebase auth exception errors thrown by the try block


Solution

  • This is something that VSCODE is doing

    you can untick the "Uncaught Exceptions" box under "Breakpoints" on the left

    VsCode Image

    i think its a replicated question, the answer is available here: Dart / Flutter - Debugger stops on caught exceptions