Xun Bug is an application for debug and profiling javascript code. It is a powerful tool supports most of mobile browser such as iPhone,Android,BlackBerry,Windows Mobile and Symbian.
There is no need to install plugins in your browser.
With the debug tool of Xun bug,you can set breakpoint,watch call stacks,step and resume,watch expressions and so on.
With the profile tool of Xun bug, you can get the javascript function call tree and every call's time ,you can also get the statistic of function calls.
Profile Javascript for IOS
http://sourceforge.net/projects/xunbug/files/mac/movie.f4v/download
Debug Javascript for Android
http://sourceforge.net/projects/xunbug/files/android/debug-demo.swf/download
a) XCode 4.1+
b) JDK 1.5+
c) Phonegap for IOS
a) Download Xun Bug
http://sourceforge.net/projects/xunbug/files/mac/0.3.0/xunbug_0.3.0.zip/download
b) Extract Xun Bug
3.How to Use for IOS?
https://sourceforge.net/p/xunbug/wiki/profile%20in%20ios/
a) Eclipse 3.6+
b) ADT 16.0.1
b) Html and Javascript Editor
I suggest to use JSEclipse
**I tested pass in eclipse 3.6 + ADT 16.0.1 + android-sdk-windows 2.3.3 and 4.0.3 **
http://phonegap.com/start#android
Download Xun Bug
http://sourceforge.net/projects/xunbug/files/android/xun-bug.0.2.0.zip/download
Start Eclipse, then select Help > Install New Software....
Click Add, in the top-right corner.
In the Add Repository dialog that appears, enter "Xun Bug" for the Name and select the download zip file.
Click OK
In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
In the next window, you'll see a list of the tools to be downloaded. Click Next.
Read and accept the license agreements, then click Finish.
Note: If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
When the installation completes, restart Eclipse.
https://sourceforge.net/p/xunbug/wiki/How%20To%20Use/
Profile Javascript
https://sourceforge.net/p/xunbug/wiki/How%20To%20Profile/
The first version support debug in android,if you want to debug in other mobile's browser,please open a browser and input the url of http://[ip]:[debug port default 8088]/assets/www/index.html.
You can debug in any browser,not only in mobile browser.
PC's browser like IE ,FF ,Chrome is also supported.
When I try to run the Android Profiler (in Eclipse 4.2 or Springsource Tool Suite 2.9.2.RELEASE (built on Eclipse 3.6.2) I get the following error:
"Plug-in 'org.ayound.mobilex.ui' was unable to instantiate class 'org.ayound.mobilex.ui.launch.JsLaunchConfigurationDelegate'.
From poking around, it seems that the correct namespace should be 'org.ayound.mobilex.core.launch.JsLaunchConfigurationDelegate', but I can't see where/why it's trying to load .ui instead.
I am running Java 1.6 on a Mac OSX 10.7 (Lion) machine.
Any ideas?