-
Notifications
You must be signed in to change notification settings - Fork 18k
x/build/env/android: gomote debugging with Android builders is painful #31091
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
Comments
What's missing from misc/android/README? |
The go_android_$GOARCH_exec wrapper was not found when I ran gomote. The gomote description didn't point out that I needed that wrapper, and I didn't look in misc/android/README. In general, if one is trying to debug something using gomote, a few more concrete examples would help. |
That document mentions nothing about gomote. And both that document and gomote require a bunch of effing around with environment variables and paths. The combination of the two is super confusing, so cookbook examples (like we have at https://github.com/golang/go/wiki/Gomote#tricks) would help. |
Here's a log of a debugging session I had to fix #31084. Snippets of it may be useful as examples in the wiki.
|
I didn't realize the Android phone gomote would work and assumed you wanted to run tests locally. Thank you for the gomote log, I'll condense it into a wiki entry. |
I've added an android entry to https://github.com/golang/go/wiki/Gomote#tricks. Let me know if you need more. |
Thanks for this. If there's one thing that could make the wiki significantly clearer it would be a paragraph about directory structure and the "gomote machine model". It took me a bunch of try-and-error runs to find out. Much of it may be "obvious" in retrospect, but it helps spelling it out right away, especially for first-time gomote users. This would provide newcomers a clearer model of how the gomote looks like from a client's perspective. Some of the things that would be nice if they were spelled out:
|
I filed #31118 for expanding the documentation. |
@griesemer discovered that using gomote to debug things on Android is painful.
We should have a wiki page with some example sessions, including how to build the exec wrapper, and how to run go tests.
The text was updated successfully, but these errors were encountered: