Not to insult you, but just checking, did you compile / deploy in Debug mode?
Main Topics
Browse All TopicsI am trying to write a test application for a Windows Mobile 6 device. It is an HTC Touch Dual.
The application is a dialog based Smart Device MFC application in C++ written in visual studio 2005.
If I deploy the application to the windows mobile emulator then I can step through the code fine. However, if I deploy it to the device then I get debug output in visual studio but none of my debug breakpoints will ever be hit.
Do I need to developer unlock the phone? What do I need to do to be able to debug on the device?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Remove all application files from the device, "Clear" and "Build" the solution. Then just F5 - run.
I know how it sounds. But if you can debug your application in the emulator, so something's wrong with the files you downloaded on the device - I don't know, something with the date/time,.. whatever.
I also have HTC Diamond with Windows Mobile 6.1 on it and I debug my applications. I have Vista and Windows Mobile Center.
Thats not working either. I deleted the folder for my app's files from the Program Files folder on the device where it is deployed. I dont a Clean Solution then a Rebuild Solution in Visual Studio then pressed F5 to run it.
The breakpoints are still not being hit. All it is is a simple app with a button. When I press the button the method has a printf line in it that I have a breakpoint on to test that the breakpoints work.
So check the project settings and the device when the app is on it.
Is it possible somehow, that in the application folder (in Program files) you don't see your debug files? They were not deployed or deployed on another place :) - who knows. In the project settings, please check that you have _DEBUG predefined and you generate the map file,...
If you reset your emulator and then will see that your application works on it...
I didn't need any certificate or unlock for my HTC. When I deploying the application, I have to press "Yes" for each executable and DLL and then the application works and I debug it. It is very slow, so I prefer a tracer/logger.
The breakpoint is red or "gray"?
I thinkl the reason is a difference between the files on your computer and on the device, or something wrong in the project settings.
Checked the settings. They seem fine. _DEBUG is defined. Was not generating a map file but enabled it anyway to see if it made a difference. It didnt.
Breakpoints are red. I still get debug output in visual studio just not breakpoints being hit.
Here is the simple Hello mobile test app project (as a download from filesavr because this sirte doesnt allow the visual studio file extensions):
http://www.filesavr.com/he
Any chance of someone trying it on their device or sending me a test app they know breakpoints work with.
look here: http://www.filesavr.com/du
I've posted it for your other question (ATL related)
I found this link about the HTC Touch Dual:
http://social.msdn.microso
I tried using the Security Configuration manager to set the configuration to Security Off and resetting the device but still no luck.
ahh, I've deleted the file by mistake, just take yours, that's 100% the same
re. Security, I thought it might be the case, look at the following links:
http://msdn.microsoft.com/
http://msdn.microsoft.com/
and change all Prompt etc flags via registry
I dont know which registry settings to change. Where are they in the registry? The first link tells me the default settings but they do not correspond to the same set of settings as mentioned in the second link.
Anyway, I would have thought that the Security Configuration Manager tool woudl do this for me.
You can get the Security Configuration Manager tool from the Program Files\Windows Mobile 6 SDK\Tools\Security\Securit
This link indicates its just not possible to debug on an HTC Touch Dual phone no matter what I do:
http://social.msdn.microso
Business Accounts
Answer for Membership
by: alexey_gusevPosted on 2009-09-22 at 09:44:25ID: 25394776
do you have SP1 installed?