Pairing and Debugging
Last updated
Was this helpful?
Last updated
Was this helpful?
In order to debug Monaca app with Monaca CLI, you need to pair your host PC (running Monaca CLI) with your device (running Monaca Debugger).
Before connecting Monaca Debugger to your host PC, please pay attention to the following points:
Monaca Debugger and the host PC have to connect to the same network
connection (LAN or Wi-Fi). Some public networks do not allow
connections between clients; therefore, pairing cannot be done in
this case.
Use the same Monaca account for both Monaca Debugger and the host
PC.
Disable the host PC's firewall.
Launch Monaca Debugger app on your device and sign in using your
Monaca account information. Make sure you are using the same account
information that you are using with the Monaca CLI.
In the command line window on your PC, navigate to your project folder and use the command to connect to the Monaca Debugger:
3. Then, a popup message prompting you to pair the Monaca Debugger with the host PC will appear. After this, your application should run on the debugger.
There are two ways to stop the pairing:
Open the toggle menu on the top-left corner and click Local Computers.
3. The information of the connected PC will be shown. Click the Unpair this computer button to disconnect from the selected PC. Pair your device back to the PC if you want to debug your app again.
See Also:
4. If your pairing is successful, your local project’s name will appear under Local Projects in the Monaca Debugger. However, if the pairing doesn't work, refer to .
In the same command window on your PC which you are running the command, please press ctrl + C
to break the debug process between your PC and Monaca Debugger.
The connected PC will be shown. Click the icon of the connected PC (see the screenshot below).