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 a configuration attribute 'program' for 'flutter.attach'

See original GitHub issue

With the flutter CLI we can run:

$ flutter attach --device-id=flutter-tester --debug-uri=http://[....] --target=lib/main_desktop.dart 

The target flag is used to select The main entry-point file of the application, as run on the device, if omitted, it default to “lib/main.dart”).

Currently the extension doesn’t support custom entry-point, ref, “lib/main.dart” is always used.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
DanTupcommented, Jul 22, 2019

I’m planning to make a beta build today that will include this if you want to test it, just gotta sort a few things out first.

0reactions
DanTupcommented, Jul 22, 2019

Great, thanks for confirming! 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debugging your add-to-app module - Flutter documentation
Select the correct device using the status bar in VS Code, then run the Flutter: Attach to Flutter on Device command from the...
Read more >
How to run a Flutter app with arguments in VS Code ... - Sarunw
You can modify each configuration by modifying its attributes. This can be vary based on Flutter and Flutter extension, so I think the...
Read more >
Device not applicable for the "main.dart" configuration
(or visit https://flutter.dev/setup/#android-setup for detailed instructions). If the Android SDK has been installed to a custom location, set ...
Read more >
Flutter SDK Setup - OneSignal Documentation
Step 1. Requirements · Step 2. Add the OneSignal Flutter SDK · Step 3. Add an iOS Service Extension (iOS Apps Only) ·...
Read more >
Building Flutter projects - Codemagic Docs
However, in order to configure any other package attributes, install the package to your project and add a msix_config to your pubspec.yaml ....
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