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.

Support running and debugging flutter applications

See original GitHub issue

This is a general issue for supporting using this plugin for Flutter developments (flutter.io). In broad strokes, support might look like:

  • a preference for where the flutter sdk lives
  • starting a copy of the flutter daemon if the user is working on a flutter project
  • showing the connected mobile devices in the status line (we get this info from the flutter daemon)
  • creating a new flutter launch configuration type
  • talking over the daemon protocol to start and stop flutter apps on devices
  • on app start, when a service protocol port becomes available, start a debug connection with the app

TODO

  • fix debugging/stepping
  • allow user to select device if multiple devices connected
  • implement hot reload
  • fix debug restarting (fixed in Code https://github.com/Microsoft/vscode/issues/28175)
  • tidy up debug argments (move to class, make strongly typed)
  • remove all flutter-related things from Dart debugger and just add in the subclass
  • remove support for port and always use wsUri

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:49 (46 by maintainers)

github_iconTop GitHub Comments

2reactions
DanTupcommented, Mar 23, 2018

@jhandguy I’ve opened #728 (I thought there was already an issue but can’t find it); subscribe there for updates!

1reaction
DanTupcommented, Jun 7, 2017

I’ve tidied up what I’d started and pushed to the flutter branch (I’ve removed the flutter-launch-wip branch). The basics are working, though there’s something wonky with debugging/stepping atm though I’m out of time today. There’s a FlutterRun class which builds on the StdIoService that’s used for Analyzer+FlutterDaemon, though currently there’s a bunch of hacks that need tidying up. I’m gonna start adding the outstanding items to the top of this issue.

Restarting debug sessions is also currently broken (I’m awaiting a response from MS, I don’t understand why it doesn’t work; could be a Code bug) and there’s no hot reload (though that’s pretty trivial to add now).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debugging Flutter apps
There's a wide variety of tools and features to help debug Flutter applications. Here are some of the available tools: DevTools, a suite...
Read more >
Debugging In Flutter - FlutterDevs
Flutter has a wide range of devices and features to help debug applications. The following equipment and facilities are displayed.
Read more >
Flutter - Using the Debugger - GeeksforGeeks
Debugging Flutter apps : · DevTool a suite of performance and profiling tools that are run in a browser. · Android Studio /...
Read more >
How to debug Android apps (including Flutter) without ...
Steps​ · Enable USB debugging. This allows you t debug your apps, and to use adb to copy files, check processes running on...
Read more >
Launch Configuration - Dart Code - Dart & Flutter support for ...
Launch Configuration · Run scripts in locations that don't conform to the conventions above · Run Dart CLI scripts via the terminal to...
Read more >

github_iconTop Related Medium Post

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