Content-Length: 388115 | pFad | https://github.com/flutter/flutter/issues/97754

A1 VSCode - Debug logs are not consistent between platforms · Issue #97754 · flutter/flutter · GitHub
Skip to content

VSCode - Debug logs are not consistent between platforms #97754

@ValentinVignal

Description

@ValentinVignal

Steps to Reproduce

Steps to reproduce the behavior:

  1. run flutter create my_app
  2. cd my_app

add the file .vscode/launch.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: Dart-Code/Dart-Code#3812

Expected results:

The logs should be consistent between the platforms.

Actual results:

Chrome:

VSCode launch
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]()
Command line

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=

iOS:

VSCode launch
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]()
Command line

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=/

macOS:

VSCode launch
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]()
Command line

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=/
Logs
Analyzing flutter_app...                                                
No issues found! (ran in 1.6s)
[✓] 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: debuggingDebugging, breakpoints, expression evaluationfound in release: 2.10Found to occur in 2.10has reproducible stepsThe issue has been confirmed reproducible and is ready to work onteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.tool-still-validIssues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.triaged-toolTriaged by Flutter Tool team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/flutter/flutter/issues/97754

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy