How to debug Google Glass GDK application?

Spread the love

Question Description

It is easy to debug Android applications as most of them launch an activity and keeping breakpoint is all it takes. How to debug a GDK based google glass app as the service is triggered on voice and does not explictly launch an activity on install?

Practice As Follows

Same way any Android service is debugged. Just add the below line anywhere in the code and any breakpoint in the code after this can be used to stop the run.

android.os.Debug.waitForDebugger();

Thanks to this – http://www.helloandroid.com/tutorials/how-debug-service

You may be interested in these books.

#CommissionsEarned

As an Amazon Associate I earn from qualifying purchases.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.