开发者

System.Diagnostics.Trace/Debug on Windows CE 5.0 and Compact Framework 3.5

I'm working on a Windows CE 5.0 device using the .Net Compact Framework 3.5. The device has its own wireless connection and I'd like to use System.Diagnostics.Trace and the local network to monitor application activity, ideally using a listener (DebugView) on a desktop machine to monitor the .Net code running on the CE device开发者_如何学C.

I have two questions:

1) Is this possible using the Compact Framework 3.5?

2) If not is there another (simple) way which we can acheive it?

Any guidance would be appreciated. Thanks :-)


  1. If you're connected with the debugger in Studio, then you will get debug messages in the Debug view in Studio, but that's the only "pipe" that's built in. If you want those messages to go so some other debug listener, whether it's a disconnected instance of Studio or some other app, the compact framework does not inherently support this.
  2. You could create a TraceListener implementation that does push the data out in whatever format you want.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜