How do I debug a windows mobile 5.0 application?

aemekli
aemekli used Ask the Experts™
on
Hello,

I have a windows mobile 5.0 project written in visual studio 2005. What I need to do is  to debug the application in the project. When I press "start debugging", a listbox appears and I select Pocket PC 2003 SE Emulator. Everything seems fine with the emulator. It stops all the breakpoints that I marked. But the problem is, the application must connect internet to fetch some data out. But I couldn't find a way to connect the emulator to internet.

Another option for me is to deploy the application directly to my HTC Touch 3G mobile phone (windows mobile 6.1 pro). The device connects the internet perfectly. But the problem in this situation is that I cannot debug it (visual studio doesn't stop at the breakpoints).

In this situation whether I need to connect the emulator to the internet or make my mobile device stop at the break point for debugging purposes. Can anyone help me doing that?

Thank you,
Afsar.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
1. To connect your emulator to the internet, you might go to Start->Settings->Connections->Connections, then Advanced page and select that the Internet is connected to "My Work Network" instead of "My ISP"

2. you might need to install VS2005 SP 1. I remember having similar problems which SP1 fixed.

Commented:
In adition to what Alexey is saying - do you have Microsoft Windows SDK 6 installed: http://www.microsoft.com/downloads/details.aspx?FamilyID=06111A3A-A651-4745-88EF-3D48091A390B&displaylang=en
Emulators for Windows Mobile 6.1.4 (almost like on your HTC but not the GUI part) are also available - you will links on the page above.
You can use these emulator for debugging - change the Pcket PC SE emulator for another emulator. These "Pocket PC 2003SE Emulator" you find easly in the project settings.
If you can deploy your application and see it running on the phone, you can choose the debug configuration, deploy it on the phone and debug also. It is the same settings oin the studio where you will find Pocket PC 2003 SE Emulator.
 

Author

Commented:
I did what you said, but I couldn't connect emulator to internet. I attached the screenshots.
Settings.png
internet.png
Angular Fundamentals

Learn the fundamentals of Angular 2, a JavaScript framework for developing dynamic single page applications.

Commented:
I'd recommend to switch to more moder emulator first. It does not matter if your Pocket PC 2003 will work with the internet. You need your app working on the HTC, don't you?
for PPC2003 emulator, check its File menu, Configure-> Network and select it to use network card

Author

Commented:
In addition to what Alexey_gusev said (Start->Settings->Connections->Connections, then Advanced page and select that the Internet is connected to "My Work Network" instead of "My ISP"), I had to do the following also.

Reference: http://blogs.msdn.com/akhune/archive/2005/11/16/493329.aspx
01.png
02.png
03.png
04.png
05.png
06.png
07.png
08.png
09.png
10.png
11.png
12.png
13.png
14.png
15.png

Author

Commented:
Thank you Alexey_gusev!

My problem is solved, but I had to do extra steps to solve it. I explained them at the end of my question with screenshots.

Commented:
Nice. Thanks.
oops, yes, this part I've forgotten :) , I do it somehow on auto-pilot :)
if you are using emulator for debugging you can even use VPN Connection give the Username/Pass/Domain and set up proxy,when you start the browser it asks the username/pass for Proxy, enter and save, your internet connection works fine..

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial