Web Inspector functionality is disabled. You can enable it when you compile your HTML5 app.
To use Web Inspector in the browser, you enable it in
the browser options. For a Cordova or an HTML5 application, you enable Web Inspector by specifying a
command-line flag at compile time.
To begin debugging your app, you can install the Google Chrome browser or another WebKit browser for your
platform. Once Web Inspector is enabled, you can access it using a supported device with the browser.
To enable Web Inspector for your app:
-
Navigate to your cordova apps directory.
-
Run the following command:
To launch your compiled app, you need to know the port number your
app is running on. You can use
netstat -a on your
target to see the open ports. The listening port numbers start at 1337. For
example:
# netstat -a
Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *.1337 *.* LISTEN
tcp 0 0 *.ssh *.* LISTEN
tcp 0 0 *.telnet *.* LISTEN
tcp 0 0 *.8000 *.* LISTEN
udp 0 0 *.* *.*
udp 0 0 *.bootpc *.*
Active Internet6 connections (including servers)
Proto Recv-Q Send-Q Local Address Foreign Address (state)
tcp6 0 0 *.ssh *.* LISTEN
Active UNIX domain sockets
Address Type Recv-Q Send-Q Inode Conn Refs Nextref Addr
81556d8 stream 0 0 0 8155680 0 0
8155680 stream 0 0 0 81556d8 0 0