question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

VS Code(Linux) Unable To Launch Chrome For Flutter For Web

See original GitHub issue

Describe the bug When I run my flutter application from VS Code using the debugger chrome briefly opens and closes and I get an HttpException. Same application works fine with flutter run -d chrome on terminal.

To Reproduce Steps to reproduce the behavior:

  1. Create a flutter application in stable channel on Ubuntu 20.04
  2. Try to run application from the VS Code debugger using chrome as the device

Expected behavior Chrome opening and running the application while connected to the VS Code debugger

Versions:

  • VS Code version: 1.56.0
  • Dart extension version: 3.22.0
  • Flutter SDK version: 2.0.6
  • Chrome Version: 90.0.4430.93 (Official Build) (64-bit)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
azwalzamancommented, May 8, 2021

Uninstalling snap vscode and installing apt vs code fixed it

0reactions
tamzidpeacecommented, Oct 18, 2021

Uninstalling snap vscode and installing apt vs code fixed it

yes, its working, thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

VS Code does not show Chrome as device for Flutter
I install Flutter and VS Code in the following way: $ sudo snap install --classic code $ sudo snap install --classic flutter $...
Read more >
Cannot start Flutter web app in Chrome debugger
Every time I try to start my Flutter app with a web target, it fails with "unable to connect to ... VS Code...
Read more >
Setup Visual Studio Code's Network Connection
A handful of features within VS Code require network communication to work, such as the auto-update mechanism, querying and installing extensions, and telemetry ......
Read more >
Install and run DevTools from VS Code
Start a debug session for your application by opening the root folder of your project (the one containing pubspec.yaml ) in VS Code...
Read more >
Add Firebase to your Flutter app
Make sure that your Flutter app targets the following platform versions or later: iOS 11; macOS 10.13. Install Flutter for your specific operating...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found