Several reasons can be considered when Monaca Debugger fails to pair with the host PC such as:
this is most
likely a firewall problem in the host PC. The host PC needs to
accept TCP connection from the debugger. Port 8001
will be used, and
you can change the server port in Preferences dialog. Please change the
port or configure your firewall settings to try agian.
please check and see if your device and the host PC are connected to the same network. If they are connected to the same network but Monaca Debugger still can’t detect the host PC, please do a manual pairing.
From Monaca Debugger, click on the toggle menu on the top-left
corner and select Local Computers
.
Click Pair the New Computer button.
Input the IP address of the host PC and port number. Then, click Pair button.
Once the pairing is successfully completed, the host PC should
appear under Paired computers
as shown below:
When using a custom build debugger on Android 9 or later, you need to add the andorid namespace to the widget
tag in config.xml
and add usesCleartextTraffic
.
Create the custom build debugger after adding the following settings to config.xml
.
<widget xmlns:android="http://schemas.android.com/apk/res/android">
<platform name="android">
<edit-config file="AndroidManifest.xml" target="/manifest/application" mode="merge">
<application android:usesCleartextTraffic="true" />
</edit-config>
</platform>
IP address and port number are needed to establish the communication
path between Monaca Debugger and the host PC. IP address represents the
host PC and port number (set to 8001
by default) represents Monaca local
development tool (such as Monaca CLI, Localkit or Monaca for Visual
Studio). Please note that the communication can’t be established if the
port number you use is not opened or is already used.
OS | Mac | Windows |
---|---|---|
IP Address | Find IP address:
|
Find IP address:
|
Port Number | Check if a port number is available:
|
Check if a port number is available:
|
If the inspector does not open, please try the following actions:
adb
processes if multiple of them are running.iosWebKitDebugProxy
processes if multiple of them are
running.See Also: