Debug without null safety

193 views
Skip to first unread message

John Boudreaux

unread,
Mar 5, 2021, 5:08:39 PM3/5/21
to Flutter Development (flutter-dev)
I am using VS Code and I need to start a debug session but turn sound null safety off to work around some bugs in Flutterfire. I do a plain run from the command line using
```
flutter run --no-sound-null-safety                                                                                          
```
However, I need to use the debugger. I've created this launch profile for VS Code but it doesn't turn off sound null safety. Anyone know the correct config?
```
"version": "0.2.0",
    "configurations": [
      {
          "name": "admin",
          "request": "launch",
          "type": "dart",
          "args": ["--no-sound-null-safety"]
       }
     ]
```

Benedicte Roussel

unread,
Mar 7, 2021, 4:06:30 AM3/7/21
to Flutter Development (flutter-dev), John Boudreaux
there was a time when you wanted to turn sound safety on you had to upgrade the environment in your pubspec.yalm flile:

environment:
  sdk: ">=2.7.0 <3.0.0"

this means that may be by downgrading this environment you will be in a 'sound null safety off world'


--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/f4390da0-ee19-4173-88cc-6977db0fecb3n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages