Part 2: Running Monaca Debugger with Monaca CLI
When developing Monaca apps on your local PC, assuming that the local PC is successfully paired with the Monaca Debugger, all changes made to the project files will be pushed into Monaca Debugger as soon as you save those changes.
Please install Monaca Debugger on your device.
To debug or test a local Monaca app, you need to pair your PC with the Monaca Debugger.
2. Launch the Monaca Debugger app and sign in using your Monaca account information. Make sure you are using the same account information as for the Monaca CLI.
3. A popup message asking you to pair the debugger with the PC will appear.
- 1.From the local projects list in the Monaca Debugger, click on a project name to run it.
- 2.Now the project should be running as shown in the screenshot below. Touch the
backbutton in the debugger menu to go back to the project list screen.
- 1.Run the project in the debugger.
- 2.Try making some changes to a project file. For example, try changing the starting page of the sample app to Page 2. In order to do this, open the
index.htmlfile. Then, change the
page2.htmland save your changes. The updated code should look like this:...<ons-sliding-menuvar="app.slidingMenu"menu-page="menu.html"main-page="page2.html"side="left" type="overlay"max-slide-distance="200px"></ons-sliding-menu>...
- 3.If your PC is still connected to the Monaca Debugger, it will automatically refresh the updates. Now your starting page should be the page 2.
That’s it! Try to make more changes to your project and see how it runs in the debugger. Enjoy developing with Monaca!