Repository: flutter
Issue: VSCode - Debug logs are not consistent between platforms
Labels: tool,a: debugging,has reproducible steps,P2,found in release: 2.10,team-tool,triaged-tool

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Steps to Reproduce

<!-- Please include full steps to reproduce so that we can reproduce the problem. -->

Steps to reproduce the behavior:
1. run `flutter create my_app`
2. `cd my_app`

add the file `.vscode/launch.json` : 
```json
{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Run",
      "request": "launch",
      "type": "dart",
      "program": "lib/main.dart"
    },
  ]
}
```

Then for iOS, macOS, and chrome, press `F5` to run the application with VSCode. The logs are not consistent. For example, `"💪 Running with sound null safety 💪"` log is only visible on chrome.

Because of that, I spent quite some time trying to find why my app was not running null-safely on macOS and iOS (it was not the same code). But from this issue, I believe it is running null-safely but it is only not logged?

I also opened a issue there: https://github.com/Dart-Code/Dart-Code/issues/3812

**Expected results:** <!-- what did you want to see? -->

The logs should be consistent between the platforms.

**Actual results:** <!-- what did you see? -->


**Chrome:**

<details>

<summary>VSCode launch</summary>

```
Launching lib[/main.dart]() on Chrome in debug mode...
lib/main.dart:1
This app is linked to the debug service: ws://127.0.0.1:53511[/ozhDRx6xrqM]()%3D[/ws]()
Debug service listening on ws://127.0.0.1:53511[/ozhDRx6xrqM]()=[/ws]()
💪 Running with sound null safety 💪
Connecting to VM Service at ws://127.0.0.1:53511[/ozhDRx6xrqM]()=[/ws]()
```

</details>

<details>

<summary>Command line</summary>

Running with `flutter run lib/main.dart`

```
Launching lib/main.dart on Chrome in debug mode...
Waiting for connection from debug service on Chrome...             16.1s
This app is linked to the debug service: ws://127.0.0.1:54213/a29Uqn05_vY=/ws
Debug service listening on ws://127.0.0.1:54213/a29Uqn05_vY=/ws

💪 Running with sound null safety 💪

🔥  To hot restart changes while running, press "r" or "R".
For a more detailed help message, press "h". To quit, press "q".

An Observatory debugger and profiler on Chrome is available at: http://127.0.0.1:54213/a29Uqn05_vY=
The Flutter DevTools debugger and profiler on Chrome is available at:
http://127.0.0.1:9101?uri=http://127.0.0.1:54213/a29Uqn05_vY=
```

</details>

**iOS:**

<details>

<summary>VSCode launch</summary>

```
Launching lib[/main.dart]() on iPhone 12 Pro Max in debug mode...
lib/main.dart:1
Xcode build done.                                            8.1s
Connecting to VM Service at ws://127.0.0.1:54344[/4nX6XeDauZg]()=[/ws]()
```

</details>

<details>

<summary>Command line</summary>

Running with `flutter run lib/main.dart`

```
Launching lib/main.dart on iPhone 12 Pro Max in debug mode...
Running Xcode build...                                                  
 └─Compiling, linking and signing...                      2,328ms
Xcode build done.                                            8.0s
Syncing files to device iPhone 12 Pro Max...                        91ms

Flutter run key commands.
r Hot reload. 🔥🔥🔥
R Hot restart.
h List all available interactive commands.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).

💪 Running with sound null safety 💪

An Observatory debugger and profiler on iPhone 12 Pro Max is available at:
http://127.0.0.1:54468/GF1QrQ6IbsE=/
The Flutter DevTools debugger and profiler on iPhone 12 Pro Max is available at:
http://127.0.0.1:9101?uri=http://127.0.0.1:54468/GF1QrQ6IbsE=/
```

</details>


**macOS:**

<details>

<summary>VSCode launch</summary>

```
Launching lib[/main.dart]() on macOS in debug mode...
lib/main.dart:1
Connecting to VM Service at ws://127.0.0.1:54540[/cAD_JOHmRow]()=[/ws]()
```

</details>

<details>

<summary>Command line</summary>

Running with `flutter run lib/main.dart`

```
Launching lib/main.dart on macOS in debug mode...
Building macOS application...                                           
Syncing files to device macOS...                                   104ms

Flutter run key commands.
r Hot reload. 🔥🔥🔥
R Hot restart.
h List all available interactive commands.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).

💪 Running with sound null safety 💪

An Observatory debugger and profiler on macOS is available at: http://127.0.0.1:53306/4qNSLtaDOHU=/
The Flutter DevTools debugger and profiler on macOS is available at: http://127.0.0.1:9101?uri=http://127.0.0.1:53306/4qNSLtaDOHU=/
```

</details>


<details>
  <summary>Logs</summary>

<!--
     Run `flutter analyze` and attach any output of that command below.
     If there are any analysis errors, try resolving them before filing this issue.
-->

```
Analyzing flutter_app...                                                
No issues found! (ran in 1.6s)
```

<!-- Finally, paste the output of running `flutter doctor -v` here. -->

```
[✓] Flutter (Channel stable, 2.8.1, on macOS 11.5.1 20G80 darwin-x64, locale en-GB)
    • Flutter version 2.8.1 at /Users/valentin/flutter/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 77d935af4d (7 weeks ago), 2021-12-16 08:37:33 -0800
    • Engine revision 890a5fca2e
    • Dart version 2.15.1

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /usr/local/Caskroom/android-sdk/4333796
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

[!] Xcode - develop for iOS and macOS (Xcode 12.5.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.0.0.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.63.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.27.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 11.5.1 20G80 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 97.0.4692.99

! Doctor found issues in 2 categories.
```

**Versions (please complete the following information):**
 - VS Code version: `1.63.2`
 - Dart extension version: `v3.27.2`
 - Flutter extension version: `v3.27.0`
 - Dart/Flutter SDK version: 
Running `flutter --version` :
```
Flutter 2.8.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 77d935af4d (7 weeks ago) • 2021-12-16 08:37:33 -0800
Engine • revision 890a5fca2e
Tools • Dart 2.15.1
```

</details>




<!--
      Consider also attaching screenshots and/or videos to better
      illustrate the issue.

      You can upload them directly on GitHub.
      Beware that video file size is limited to 10MB.
-->