130
edits
| Line 251: | Line 251: | ||
==Setting Up Debugging of MyBrowser In Emulator== | ==Setting Up Debugging of MyBrowser In Emulator== | ||
You can debug the MyBrowser XULapp from within Visual Studio by creating a simple Visual Studio Project, | You can debug the MyBrowser XULapp from within Visual Studio by creating a simple Visual Studio Project, then adjusting the deployment device and executable to be run. | ||
1. Open Visual Studio 2005 (Visual Studio 8) Integrated Development Environment (IDE) | 1. Open Visual Studio 2005 (Visual Studio 8) Integrated Development Environment (IDE) | ||
| Line 276: | Line 276: | ||
12. Close the Project Properties dialog box | 12. Close the Project Properties dialog box | ||
==Setting Up Debugging of Fennec On A Device== | |||
You can debug the Fennec XULapp from within Visual Studio by creating a simple Visual Studio Project, then adjusting the deployment device and executable to be run. | |||
1. Build both xulrunner and mobile via the instructions found [https://wiki.mozilla.org/Mobile/Build/Windows_Mobile_BuildingIt on this page]. | |||
2. Make an installer by running the ''make installer'' command from | |||
the directory $(OBJDIR)/mobile/mobile/installer | |||
This step will create both a CAB file AND a fennec directory within | |||
the $(OBJDIR)/mobile/dist directory | |||
3. Copy the $(OBJDIR)/mobile/dist/fennec directory on to your device's | |||
Storage Card, creating a ''\Storage Card\fennec'' directory | |||
4. Open Visual Studio 2005 (Visual Studio 8) Integrated Development Environment (IDE) | |||
5. Open the solution you have created for use in debugging | |||
6. In the Solution Explorer, '''right mouse click on the debugging project''' | |||
7. Select the '''Properties''' pop-up menu item | |||
8. Under the configuration properties, highlight the '''Deployment''' section | |||
9. Make the selected '''Deployment Device''' be '''"Windows Mobile 6 Professional Device"''' | |||
10. Press the '''Apply''' button if necessary to save your new selection | |||
11. Under the configuration properties, highlight the '''Debugging''' section | |||
12. For '''Remote Executable''', enter '''\Storage Card\fennec\xulrunner\xulrunner.exe''' | |||
13. For '''Command Arguments''', enter '''..\application.ini''' | |||
14. Press the '''Apply''' button if necessary to save your new selection | |||
15. Close the Project Properties dialog box | |||
If your Visual Studio and ActiveSync and Windows Mobile 6 Professional SDK are properly installed, you are now ready to begin a debugging session within Visual Studio's IDE. | |||
Press the F5 key to start debugging the XULRunner.exe Fennec application. | |||
==Actual Debugging In Emulator== | ==Actual Debugging In Emulator== | ||
edits