Skip to content

Instantly share code, notes, and snippets.

@ssatz
Created November 6, 2018 09:07
Show Gist options
  • Save ssatz/de97dead98225fc2e6d1d772cc7bf943 to your computer and use it in GitHub Desktop.
Save ssatz/de97dead98225fc2e6d1d772cc7bf943 to your computer and use it in GitHub Desktop.
flutter
adb shell
mlv5:/ $ logcat -e listening
--------- beginning of crash
--------- beginning of system
--------- beginning of main
09-12 12:34:08.847 19381 19417 I flutter : Observatory listening on http://127.0.0.1:54554/
curl http://127.0.0.1:54554/
curl: (7) Failed to connect to 127.0.0.1 port 54554: Connection refused
So I need to forward ports
eduardo@debian:~/projects/flutter/hello_world$ adb forward tcp:54554 tcp:54554
eduardo@debian:~/projects/flutter/hello_world$ curl http://127.0.0.1:54554/
<!DOCTYPE html>
<html style="height: 100%">
<head>
<meta charset="utf-8">
<title>Dart VM Observatory</title>
<link rel="stylesheet" href="packages/charted/charts/themes/quantum_theme.css">
<link rel="stylesheet" href="packages/observatory/src/elements/css/shared.css">
<script defer src="main.dart.js"></script>
</head>
<body style="height: 100%">
</body>
</html>
@ssatz
Copy link
Author

ssatz commented Nov 6, 2018

@ssatz
Copy link
Author

ssatz commented Apr 9, 2019

Java Debugger
Deleting .vscode/launch.json worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment