Mobile/Build/Windows Mobile DebuggingIt: Difference between revisions

Debugging on the emulator
(Debugging on the emulator)
 
Line 286: Line 286:
  9. Press the Next button to move to the Project Settings page.
  9. Press the Next button to move to the Project Settings page.
   
   
  10. Keep all the default settings on the Project Settings page.
  10. Keep all the default settings on the Project Settings page
    (or you may want to select Empty Project in Additional options).
   
   
  11. Press the Finish button to create and open your new project
  11. Press the Finish button to create and open your new project
Line 347: Line 348:


(1) Attach to a currently running XULRunner process.
(1) Attach to a currently running XULRunner process.
Go to the device (or emulator) and run the Fennec shortcut. 
Once XULRunner.exe is started, go to the Visual Studio, pull down the Tools menu
and select the ''attach to process'' menu item.
In the Attach to Process dialog, select the "Smart Device" transport, and select
the appropriate emulator image or device type.
Press the Browse button, and wait for the available process list to fill up.
Highlight the XULRunner process and press the Attach button.


(2) Start XULRunner.exe with the appropriate arguments from within Visual Studio
(2) Start XULRunner.exe with the appropriate arguments from within Visual Studio


To do (1):
Visual Studio will start debugging from application launch.
 
  As there is nothing to build and deploy from VS itself, it makes sense to disable that.
  Go to the device (or emulator) and run the Fennec shortcut.  
Open "Project | Properties", click "Configuration Manager...", and uncheck Build and Deploy.
 
  Once XULRunner.exe is started, go to the Visual Studio,  
  pull down the Tools menu and select the ''attach to process''
  menu item.
 
  In the Attach to Process dialog, select the "Smart Device"  
  transport, and select the appropriate emulator image or
  device type.
 
  Press the Browse button, and wait for the available process
  list to fill up.  Highlight the XULRunner process and press
  the Attach button.


If you choose to debug via step (2), the Visual Studio will start debugging from application launch.


NOTE: The XULRunner.exe application will create a profile directory if one is not already created, and then may or may not immediately exit.  If this happens, simply restart the XULRunner.exe application.
NOTE: The XULRunner.exe application will create a profile directory if one is not already created, and then may or may not immediately exit.  If this happens, simply restart the XULRunner.exe application.
200

edits