PG2
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
48 Chapter 2 PhoneGap Development, Testing, and Debugging<br />
Note: Be sure to remove the Weinre tag from your PhoneGap application<br />
before releasing it into production. The application will likely hang if attempting to<br />
connect to debug server that isn’t available.<br />
Figure 2-16 shows the debug server running on a Macintosh. On the bottom of the<br />
window are tabs that control the server while the toolbar on the top of the window<br />
contain options for the remote debugger client.<br />
Figure 2-16 Weinre server/debug client on a Macintosh<br />
The debug client provides the means to view and optionally manipulate many of<br />
the page elements and other aspects of your application’s web content. You can<br />
view the browser console, as shown in Figure 2-17, to see console messages written<br />
by the PhoneGap application, or you can change application values or properties<br />
to tweak the application while it’s running.<br />
The available documentation for Weinre is pretty light, but since the project’s<br />
capabilities are based upon the Google Chrome Developer Tools, you can find<br />
additional information on the Google Code web site at http://code.google.com/<br />
chrome/devtools/docs/overview.html.