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

Observatory 'print' command support #109

Open
GoRadioGo opened this issue Oct 18, 2020 · 3 comments
Open

Observatory 'print' command support #109

GoRadioGo opened this issue Oct 18, 2020 · 3 comments

Comments

@GoRadioGo
Copy link

GoRadioGo commented Oct 18, 2020

flutter-pi is very interesting.
Set up a RPI4, running flutter_gallery application, and that works well.

Exploring the Observatory operations via Chrome browser.
Breakpoints work well.
I noticed that 'print' operations do not work. Example ..
$ print _textScaleFactor
{details: _compileExpression: No compilation service available; cannot evaluate from source.}

This would help make debugging that much more powerful. Is there something that can enable 'print' commands ?

@ardera
Copy link
Owner

ardera commented Apr 7, 2021

Sorry, completely forgot about this. It's probably caused by flutter build bundle stripping away the part of the kernel_blob.bin that can compile dart code into code that can be executed by the dart VM. I don't have a solution right now, but we'll probably have to use flutter assemble somehow to get it working.

@GoRadioGo
Copy link
Author

Hey no worries.
We have enjoyed using flutter-pi, and are close to finishing off an application using it.
Kudos for the good work.

I'm still running an older version of Flutter engine binaries (1.22.6), but will migrate to the 2.x engine binaries in a couple of weeks.

On Observatory related question, would you expect Flutter-pi to support the newer DevTools ?

@ardera
Copy link
Owner

ardera commented Apr 7, 2021

Hey no worries.
We have enjoyed using flutter-pi, and are close to finishing off an application using it.
Kudos for the good work.

thx!

On Observatory related question, would you expect Flutter-pi to support the newer DevTools ?

So generally, everything observatory related is happening inside the flutter engine. So as long as the flutter engine works with your devtools, it should be all fine. I'm not sure they make any guarantees about inter-version compatibility though. I think the best way to find out would be just asking on the flutter discord

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