Part 2: Running Monaca Debugger with Monaca for Visual Studio¶
Table of Contents
Monaca Debugger is a powerful application for testing and debugging your Monaca applications on real devices in real time.
When developing Monaca apps on your local PC, assuming that your local PC is successfully paired with Monaca Debugger, all changes made to your project files will be pushed into your Monaca Debugger as soon as you save those changes.
Please install Monaca Debugger on your device.
Please refer to Monaca Debugger Installation for other platforms.
- Launch Monaca Debugger app and sign in using your Monaca account information. Make sure you are using the same account information you use for Monaca within Visual Studio IDE.
- Pair the Monaca Debugger with the PC hosting Monaca for Visual Studio. Once logged in, Monaca Debugger should be able to detect the host PC as shown below. Then, click Pair button to start the pairing.
- If your pairing is successful, a project list will appear in Monaca Debugger and the connected debugger will appear in the Monaca panel (see screenshots below as an example). However, if Monaca Debugger is unable to detect the host PC automatically, please refer to troubleshooting the Pairing.
- In order to run your project in Monaca Debugger, you can just click on the project name in the debugger or click Run in Device button in Monaca panel within Visual Studio. Then, your project should be running in the debugger as shown below:
- Run the project on the debugger.
- Let’s make some changes in a project file and save them (please refer to Edit Project Files). In this example, we edit
index.htmland change the title of each list item from “Rorem Ipsum” to “Monaca and OnsenUI”. Then, save the change.
- The saved changes will be sent to Monaca Debugger on your device. You can also click on Reload button to retrieve the latest updates of your app in case the changes are not reflected.
That’s it! That’s how easy it is to use Monaca Debugger. Please try to make more changes to your project and see how it runs on the debugger.
Please refer to Functionalities to explore the other functions provided by Monaca Debugger.