Open the launch.json file in VS Code.

    If you do not have a launch.json file, go to 
the Run view in VS Code and click create a launch.json file.

In the configurations section, change the flutterMode property to 
 the build mode you want to target.
    
      For example, if you want to run in debug mode, 
 your launch.json might look like this:
        
  "configurations": [
{
  "name": "Flutter",
  "request": "launch",
  "type": "dart",
  "flutterMode": "debug"
}
 ]

Run the app through the Run view.

Fast edit and refresh development cycle

Flutter offers a best-in-class developer cycle enabling you
to see the effect of your changes almost instantly with the
Stateful Hot Reload feature.
To learn more, check out Hot reload.

Advanced debugging

You might find the following advanced debugging tips useful: