• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 216
  • Last Modified:

Debug strings on PDA

Is there a way to output debug strings on a P/CE device?  
If you're using DevStudio and have a P/CE device hooked up to the serial port, OutputDebugString writes to your main machine.  I'd like a way to write debug strings to the P/CE device.
  • 2
1 Solution
I do not fully understand you needs. OutputDebugString under windows CE writes the string to the debug window of Devstudio. That is the whole purpose of the API.

If you want to write debug string on a PDA ..

use the good old fashion techniques
1. Create a file and write the strings to it
2. Use WM_COPYDATA to send debug data to another application on the CE device
I have to go with iarla.  If you want to write to the P/CE device. use printf.  If you only have the devlepment tools (no platform Builder) you won't be able to redirect the current output strings.  
don23Author Commented:
That's pretty much what I wanted to confirm.  We're looking to print the debug msgs out on the pda, not Dev Studio on the "main" computer.

So it looks like its WM_COPYDATA land for me!

Your are welcome
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now