Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter, How to get Observatory debugger URL programmatically?

Tags:

flutter

dart

Are there any ways to programmatically get Observatory debugger URL like this

http://127.0.0.1:49276/K-PoofiUguw=/

inside the Flutter running application?

like image 592
b.ben Avatar asked Mar 19 '26 09:03

b.ben


1 Answers

After researched, We can't get it on runtime.

But we can get it during launch the app using vmservice-out-file option.

Example:

flutter run -d deviceId --vmservice-out-file=[TEMP_FILE]

Reference: https://github.com/flutter/flutter/pull/41583

Update: another ways is to use flutter daemon or flutter attach

like image 60
b.ben Avatar answered Mar 21 '26 00:03

b.ben



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!