Debugging Windows Mobile

I am working on building a Windows mobile app and I have a quick question. I was looking for an answer and couldn't find anything. Is it possible to run a Windows Mobile app on a physical hardware device from visual studio? I don't need to debug really, I just want to be able to select my device and build it, copy it to the device and run it. Is there a way to tweak this?

+2


source to share


4 answers


There is a Device toolbar that should allow you to select a target device. Check it out in the View -> Toolbars menu (for VS 2008 ... not sure if you are on another VS version).

If you only show emulators, you may need to install windows mobile 6 sdk (I don't know for sure, but I know I have one installed too ... maybe this only includes emulators).



Update:

It might also be worth right clicking on your project in the solution explorer and selecting properties. On the property page, go to the Device tab. There may be some devices listed there that are not listed in the target device dropdown on the toolbar. Worth taking a shot, but no promises.

+8


source


Just believe me. I am currently working on Visual Studio 2008 and I have already installed Windows Mobile 6.0 SDK. It's just two steps.

  • Connect your device to your computer via USB cable, then you will see that ActiveSync has connected your device.

  • Open VS and select "Windows Mobile Professional Device" from the target device menu, then click the "Debug VS" button (this is slower than the simulator, but it works fine). (look at the picture)



alt text http://img38.imageshack.us/img38/3638/screenhy.jpg

I hope this helps you.

+3


source


Yes. If it's like mine (Verizon Motorola Q), Visual Studio will copy some files to the device and the device will prompt you to allow them. You only have to do this once. Then, when you debug your device, you may be prompted to allow the program you are debugging to run. It seems that you copy your program to a folder in the Program Files folder and run it from there. And it leaves it there even after stopping debugging.

One more thing. In Visual Studio 2005, you need at least the standard edition for mobile development. In Visual Studio 2008, you need at least the professional edition.

+1


source


Thanks for helping everyone. My solution was a combination of several answers. First I had to switch the project to Windows Mobile 6 Professional SDK and then I was able to select "Windows Mobile Professional Device"

0


source







All Articles