GithubHelp home page GithubHelp logo

Hot Reload about nativeshell HOT 5 CLOSED

maxjoehnk avatar maxjoehnk commented on July 24, 2024
Hot Reload

from nativeshell.

Comments (5)

knopp avatar knopp commented on July 24, 2024

Hot reload works of course :)

You can attach Flutter debugger to running process (there are vscode launch configurations that do that automatically), after which you can hot reload the code.

from nativeshell.

maxjoehnk avatar maxjoehnk commented on July 24, 2024

Ah nice, than I‘ll have to figure out how to do this with IntelliJ as there doesn’t seem to be an easy way to attach to an external flutter process.
Is this also possible from the web ui? I didn’t notice it in the dart observatory and the flutter devtools don’t seem to be available. At least I haven’t found any references to it.

from nativeshell.

knopp avatar knopp commented on July 24, 2024

If you just want hot reload you can do it through command line. i.e.

flutter attach -v -d macos --debug-url=http://127.0.0.1:62935/tHQyjy6Zdeo\=/ --target=lib/main.dart

Debug URL is the printed observatory URL. I'm not sure how to access dev tools, I usually just launch it through the DartCode plugin. Also the documentation mentions attaching in intellij though I don't know if that works as expected.

from nativeshell.

maxjoehnk avatar maxjoehnk commented on July 24, 2024

Well I guess I should've RTFM.
That will definitely help me, as I only really need the hot reloading.
As far as I can tell the attaching via IntelliJ doesn't work because it requires knowledge of the "device" it's running on but I'll have to check that.
I will note it here if I can get it to work.

Thanks for the quick response!

from nativeshell.

knopp avatar knopp commented on July 24, 2024

I think the link I've sent mentions selecting the device before arraching. But it is possible that the intellij plugin doesn't recognize NativeShell project and won't let you select the desktop device.

from nativeshell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.