Today,when searching on the Google on how to debug Javascript on Mobile, I found Yconsole.js, using this we can easily debug our code on mobile devices.
Download it from the link below.
Include these two lines of code in your html file.
<script type="text/javascript" src="yconsole.js"></script>
<script type="text/javascript" >YConsole.show();</script>
Maybe helpful to someone.