dartboard icon indicating copy to clipboard operation
dartboard copied to clipboard

Support --enable-vm-service flag for dart run

Open sebthom opened this issue 5 years ago • 3 comments

To support hot code reload in dart projects we need to run dart with the '--enable-vm-service' flag.

It does not seem to be possible to currently configure this for a Dart launcher.

sebthom avatar Feb 26 '20 11:02 sebthom

Yes, that's correct. Feel free to provide a PR if you have time, otherwise this should be relatively easy to implement. Do you feel like it should be made configurable (e.g. a checkbox with "Enable Vm Service for Hot Reload")? Or just run every Dart launch with the flag?

jonas-jonas avatar Feb 28 '20 08:02 jonas-jonas

I think the most generic solution would be to provide a separate input field where you can provide additional dart vm options/flags. Like the JVM arguments in the Java launcher.

sebthom avatar Feb 28 '20 09:02 sebthom

Yes, that should work. Though, I'd like to provide these "toggleable" options via a checkbox, rather than a text field. But it should be easily implemented. Will see if I find some time for this issue this week.

jonas-jonas avatar Mar 01 '20 21:03 jonas-jonas