Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ihenk opened this issue Sep 13, 2021 · 4 comments
Open

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

ihenk opened this issue Sep 13, 2021 · 4 comments

Comments

@ihenk
Copy link

ihenk commented Sep 13, 2021

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
Copy link
Contributor

knopp commented Sep 13, 2021

Did you get any error message in the logs?

@ihenk
Copy link
Author

ihenk commented Sep 13, 2021

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
Copy link
Contributor

knopp commented Sep 13, 2021

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

@ihenk
Copy link
Author

ihenk commented Sep 13, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants