akauppi
akauppi

Reputation: 18036

Debugging console to Visual Studio 2008 from Windows CE device

I'm developing code for a SH4-based Windows CE 5.0 device, using Visual Studio 2008.

The remote debugger is nice - I can see variables, set breakpoints and single step. But what I don't seem to find is a debugging "console" that would pass strings from my code onto the debugger itself.

Maybe it's just that using jQuery (and other Web techniques) has made this kind of debugging to be taken for granted, but really - it's not there. Am I missing something obvious?

What I do find is a OSCapture method of storing a debugging log (with roll-over) on the device itself. Is that all there is?

ADDENDUM:

The CeLog, CeLogFlush, OSCapture tools seem half-way what I want (logging on the target device itself). But there's no download. Are these parts of Platform builder os something and I'm out of luck since the device does not already have them?

ADDENDUM II:

Simply using 'fprintf()' to output strings seems to put them on the application's main window. That's enough for me to get started. To rephrase, what I'm looking for is 'fprintf_to_host()'.

Upvotes: 1

Views: 2174

Answers (1)

ctacke
ctacke

Reputation: 67168

I'm a little unsure of what you want. I think what you want is the ability to have debug info output from your app and have it shown in Studio, yes? If that't the case, use the DEBUGMSG macro, something like this:

DEBUGMSG(TRUE, (_T("My Variable: %i\r\n"), varname));

Where the first param is a condition under which to actually print (so this case would always print) and the second works like a printf for formatting variables. Note that it's in unicode.

Upvotes: 3

Related Questions