Tuesday, January 12, 2016

General Debugging tips

Trying to use Hierarchy Viewer on off the shelf android device and its not showing up any tree.

 Please checkout this :

 Just copy the ViewServer.java into your project.
 once you are done with that , check this sample activity 

 Debugging Webviews using chrome developer tools

   Since the android webviews are chromium based , you can actually debug webviews using more
   sophisticated chrome developer tools.
  • looking at DOM 
  • finding more about network requests and errors
  • even the console logging is available
Resources :


Wish to debug the lifecycle of a fragment 

    FragmentManager.enableDebugLogging(true) should do the trick.

    look at this post from awesome android developer " Chiu-ki-chan " 
    http://blog.sqisland.com/2014/06/navigationdrawer-creates-fragment-twice.html 
   

No comments:

Post a Comment