Debug a CF application on a PC

T

tjo

Hi

I know its possible to run a CF application on a normal PC. But is it
possible to debug it?
I would like to start writting my application on a PC first. Its
faster and much easier to debug the functionality on the PC.
When I uses a normal projekt it uses the full framework and I have to
dobbel check if I have used som function not in the CF.
I have added reference to the CF version of System.Windows.Forms,
System.* etc instead of those from the full framework. If I then uses
some unsupported function I get compile errors.
But the problem i, that when I edit the dialog or add new controls,
unsupported functionality is added by Visual Studio 2005.
If I create a CF projekt, Visual Studio launches an emulator instead
and I cant debug on the PC

Is it possible to make Visual Studio not launching an emulator when
debugging of a CF application?
Is it possible to tell VS, just to add/use CF compatible functions on
controls?

/Thomas
 
T

tjo

Yes, bút then visual studio start an emulator (PocketPC or something
like that.
It would like it to start it on tge PC and not a emulated device
 
B

Bjørn Brox

Yes, bút then visual studio start an emulator (PocketPC or something
like that.
It would like it to start it on tge PC and not a emulated device

It starts up whatever you you have selected as "Target Device", - it is
your choice.

Try changing "Target Device" to for example "Windows Mobile 6
Professional Device" and you are able to debug on the device itself ,-
if it is connected.

You also have the "Project" -> "Change Target Platform..." option if
your initial choice was PocketPC.

Again: Everything is just a result of your own choices.
 
S

stealthrabbi

Why not just keep the device connected to your PC via ActiveSync and
have VS deploy your Mobile project to "Pocket PC 2003 device", rather
than the emulator. This should be an option in a combo box in the
upper right corner, or under your project settings. i think it
defaults to go on the emulator.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top