Mobile/Build/Windows Mobile DebuggingIt: Difference between revisions

Line 210: Line 210:
  '''copy -r mybrowser c:\mozilla\unicode\objdir-wm6-debug\dist\bin'''
  '''copy -r mybrowser c:\mozilla\unicode\objdir-wm6-debug\dist\bin'''
  (or, rather, copy the mybrowser directory into the same directory that contains xulrunner.exe)
  (or, rather, copy the mybrowser directory into the same directory that contains xulrunner.exe)
==Setting Up a Project To Use For Debugging==
The Visual Studio WinCE Shunt Library Project has been removed recently, so you will need to create a simple Visual Studio solution with which you can do debugging.
Here are the steps for creating a simple application within Visual Studio 2008 (a.k.a. Visual Studio 9).
1. Start Visual Studio
2. Select ''File | New | Project''
3. In the left hand window, select ''Visual C++ | Smart Device''
4. Select ''Win32 Smart Device Project'' in the right hand window
5. Enter a project name (I use "DebugMC" as my project name)
6. Select some location - I keep the location on the same hard disk
      partition as the mozilla-central source.
    NOTE: The location of your newly created project is not important. 
          Set the project location anywhere you like.
7. Click the Next button on the Win32 Smart Device Project Wizard to
    move to the platform SDK selection page.
8. Using the '<' and '>' buttons, remove the Windows Mobile 5.0 platform SDK
    and add the Windows Mobile 6 Professional SDK to the list of selected SDKs.
9. Press the Next button to move to the Project Settings page.
10. Keep all the default settings on the Project Settings page.
11. Press the Finish button to create and open your new project




Line 215: Line 251:
==Setting Up Debugging of MyBrowser In Emulator==  
==Setting Up Debugging of MyBrowser In Emulator==  


*It appears that the Visual Studio Project has been removed recently, so this may not be possible using this method.
You can debug the MyBrowser XULapp from within Visual Studio by creating a simple Visual Studio Project, and adjusting the deployment device and executable to be run.  
 
You can debug the MyBrowser XULapp from within Visual Studio by using the WinCE shunt Visual Studio Project, and 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)
   
   
  2. Open the solution c:\mozilla\unicode\build\wince\shunt\build\vs8\mozce_shunt_static.sln
  2. Open the solution you have created for use in debugging
   
   
  3. In the Solution Explorer, '''right mouse click on the mozce_shunt_static project'''
  3. In the Solution Explorer, '''right mouse click on the debugging project'''
   
   
  4. Select the '''Properties''' pop-up menu item
  4. Select the '''Properties''' pop-up menu item
130

edits