nativeshell / examples

Other
64 stars 7 forks source link

How could I hot reload the code after 'cargo run' #18

Open ihenk opened 2 years ago

ihenk commented 2 years ago

Hi, there. I saw the tip below. To debug or hot reload dart code, start the Flutter: Attach to Process launch configuration once the application runs. I've tried several times, but it didn't work. Is there anyway I could hot reload the dart code after 'cargo run'?

knopp commented 2 years ago

Did you get any error message in the logs?

ihenk commented 2 years ago

I did cargo run in Terminal at the root directory of my project, then I clicked 'flutter attach' button in Android Studio and it was showing 'Waiting for a connection from Flutter on macOS...'. I was wondering if I did the right way.

knopp commented 2 years ago

Unfortunately android studio flutter plugin can't attach to running desktop projects. This is only supported in vscode using the including launcher configurations.

ihenk commented 2 years ago

Got it. Let me have a try. Thanks a lot.