MIHtool not logging JS console

220 views
Skip to first unread message

Pedro Rivera

unread,
Dec 18, 2014, 1:02:42 AM12/18/14
to mih...@googlegroups.com
I'm using MIHtool to debug a webapp in which JS isn't working correctly. However, there is no output under the console tab of the inspector. Have you experienced this? 

unbuglee

unread,
Dec 18, 2014, 1:16:22 AM12/18/14
to mih...@googlegroups.com
This happens:
1.The web inspector does not select the right target automatically,you might do it manually in the Remote panel please check this video.also if it lose connect,please refresh your page and reload web inspector,this is how weinre works,also see how to use weinre.
2.The web inspector requires a server which I deployed at Landon,if your location too far to load the request,you can switch the server to your own,
please check the “Switch weinre Server”  command in HTTP Server to see how to switch server :)

Pedro Rivera

unread,
Dec 18, 2014, 12:19:01 PM12/18/14
to mih...@googlegroups.com
Hi! Thanks for your quick response, I'm in the middle of trying these things but I have a stupid question, where is Landon? There seem to be a couple of places named Landon accross the world.

Pedro Rivera

unread,
Dec 18, 2014, 5:50:26 PM12/18/14
to mih...@googlegroups.com
So I just deployed my own weinre server but it still doesn't work. I am able to inspect html elements but nothing under network/timeline/console... can't find what's wrong!


On Thursday, December 18, 2014 12:16:22 AM UTC-6, unbuglee wrote:

unbuglee

unread,
Dec 18, 2014, 8:44:55 PM12/18/14
to mih...@googlegroups.com
weinre default not enable network/timeline ,you can see in my  video.: turn on the circle switcher,and you wont see any log until weinre is ready,it means you'll missing any log before window.onload,this is how weinre works,also see how to use weinre.

Pedro Rivera

unread,
Dec 18, 2014, 10:08:33 PM12/18/14
to mih...@googlegroups.com
Alright I didn't know about the recording button, now I'm able to see network output, but the js console still doesn't do anything even if I log stuff after the document loads. The reason why I'm using MIH tool is cause my webapp's JS code is not running properly.

unbuglee

unread,
Dec 18, 2014, 10:17:58 PM12/18/14
to mih...@googlegroups.com
Can you see logs after you manually  type console.log('test') in the console?If so,then your log must be done before weinre is ready,in this case you'll missing them.

unbuglee

unread,
Dec 18, 2014, 10:22:15 PM12/18/14
to mih...@googlegroups.com
Weinre is quite weak to debug javascript,maybe you can tell me what's going on to your project,see if I can help ;)
Reply all
Reply to author
Forward
0 new messages