Use Cordova serve build and Tomcat for Web debugging.

Source: Internet
Author: User

The Web page can then be debugged directly on the browser.

Enter Address

HTTP//Your ipd:8000/android/www/.


Another way to add this is to use WebView to debug from the project load URL back on tomcat


, build a xxx.xml file under the localhost path, and xxx is the name of the project you want to access

On this xxx file

Text version

<?xml version= ' 1.0 ' encoding= ' utf-8 '? ><context docbase= "D:\CordovaApp\jqmobile\www" path= "/cordova" Workdir= "Work\catalina\localhost\cordova" ></Context>




Docbase corresponds to the value of the Www,path in your Android project/cordova is consistent with the outside of the xxx name, the same workdir \cordova name is the same.




Then direct access to the project is OK.

such as HTTP://IP address or localhost: port number/project name (consistent with Xxx.xml name)/

This way, you can modify anything under the WWW path and refresh the browser to take effect.




2014/07/18 16:26 Update

Found himself or messed up, in fact, if it is online version, such as WebView to load an online URL, then and our usual web development is exactly the same, so we just need to webroot in the usual development of the Web project under a random directory such as HTML5, Then we can use WebView to load http:xxxxxxx/project name/html5/.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.