How to install Weinre in windows7 - android

Please help me in installing and debugging my mobile htmls from my machine using weinre.Lot of guys telling me how useful weinre is, but i am unable to find the way how to install it, please help me how to install weinre and debug using it.Thanks in advance.

If you still need to use Weinre locally, here is the global process after install:
Weinre does not find any target
More precisely here: https://stackoverflow.com/a/16761649/79445

When i try to search for the answer, i found one interesting link http://debug.phonegap.com/, there you have the weinre installed in that website.
What you need to do is:
open the link http://debug.phonegap.com/
Create your guid in the text box there.
then you see the script tag generated for your guid below.
copy paste that script tag in your mobile page where you want to test
open the page you want to test in the mobile browser
then come to the http://debug.phonegap.com/#yourguid.there you see the web inspector
debug it, simple.

Related

JS Code Deploying on Web

I am a junior mobile developer who is working on a location tracking app for android. I want to monitor location of people using android tracking app on web for which I have found this code on github written in Coffee script. I am total noob when it comes to web terminology or tool
I dont know how to show output of this code on web/browser. Can any one give me simple bullets on how to use this code and see output.
Download and install Node.js.
Go to the code Directory, ie.
cd ~/track-my-location-develop/track-location/web
and run the following command: npm install && npm start
After thats done, open the url http://localhost:4000 on your browser
You will get a list of devices available,Get any of those user id and track the device by navigating to : http://localhost:4000/track/:objectId
eg: http://localhost:4000/track/Simulator
Refer to app.coffee file for further details regarding the routes available.
Now you could use these WebServices within your android application to do your desired task.

how to debug to find out the reason why the website doesn't get displayed on android browser

I am doing some tests and realised that android browser does not display my website. The other browsers are ok.
I used these libraries:
easeljs
mathjax
jquery
I also used html5 webworkers. This is my test website: thewebdesign.org/v16/
My question is:How to find out the reasons.
Take a look at https://developers.google.com/web/tools/chrome-devtools/debug/remote-debugging/remote-debugging to be able to inspect the chrome console.
Hope it helps.
Remote debugging is the most accurate / best, as suggested above, but if you are not able to use remote debugging: You can try out browserstack (http://browserstack.com/). Even though you would fix the android issue, there are no guarantees, IOS works. That is why I have been using browserstack, to test IOS.

Weinre Target Not Connected after page change

I'm using Weinre to Debug my PhoneGap App locally. I've enabled Debug on Adobe Build, and when I run the App, I am able to connect and debug using the Weinre interface:
Everything works great until I navigate to a new page in my app. Then, I am disconnected, and can no longer debug:
Can anyone offer any guidance, or suggestions?
Well, that's just the way it works. weinre runs in "user land" - that is, as a live thing inside your page. So, when you replace the page with a different page, weinre won't be running on that new page, unless you've also instrumented that page to use weinre.
Please see the latest weinre docs for tips about using other debuggers, which might work out better for you.

Debugging web page in Android app using weinre - cannot find debug target

I am trying to debug a web page inside my Android app's WebView.
I've setup and started weinre following these and these instructions, modified my web page adding
<script src="http://my-local-ip:8080/target/target-script-min.js"></script>
Now, as I understand, I should open http://localhost:8080/client/#anonymous in Chrome and find my debug target there. However the targets list is empty.
What have I missed or done wrong?
Had to use IP address both in Debug Target and Debug Client, i.e.
http://my-local-ip:8080/client/#anonymous
I had the same issue. The issue is gone after changed "127.0.0.1" to real ip like "192.168.0.42".

Phonegap Android, testing in browser.

I'm building a Phonegap application. I've already made the html application, and tested it in my Windows Google Chrome browser, with no errors. I've cheked it in the navigator of my Android Phone and it is working. However, after Phonegap, I see some things are not working.
Which browser is Phonegap using? Is it not the same as the Android navigator? Can I somehow debug it?
On my Eclipse console I only see errors about Vertext shaders.
Thanks
PhoneGap instantiates an Android WebView component with is not equal to the Android Browser. If your code has console.log statements you should be able to see them in LogCat tab in Eclipse.
If you want better debugging you should add WeInRe to your project for remote debugging.
You can add console.log statements, which can be seen with adb logcat in the Terminal, or with DDMS.
And how about this? What do you think?
https://chrome.google.com/webstore/detail/ripple-emulator-beta/geelfhphabnejjhdalkjhgipohgpdnoc?hl=en

Categories

Resources