Petchey

I'm working with .NET/C# on the WM 5.0 and have noticed that I can't get a debug spew to show up in VS2005, it will show up in the console window though. Which is fine, but when I have Active Sync up and the device cradled I get so many +SL_TxIntrEx messages that I can keep track of my debugOut statments. Is there any way to turn this off or is there a way to get the emulator/C# to send the spew to VS2005

Re: Device Emulator General .Net and Debug Output

Michael Koster

The class System.Diagnostics.Debug offer two methods Write and WriteLine - the output of these APIs will appear in the VS 2005 debug window.






Re: Device Emulator General .Net and Debug Output

Petchey

I'm using System.Diagnostics.Debug.WriteLine but don't see the spew



Re: Device Emulator General .Net and Debug Output

Michael Koster

You'll only get the output in Visual Studio 2005 if you run your app inside the debugger (Debug -> Start Debugging).
If you just launch your app on the emulator directly, the output indeed only appears on the debug serial port.

Make sure you have the output window (View -> Output) open and selected the output from 'Debug'

Hope this solves the issue.






Re: Device Emulator General .Net and Debug Output

Ilya Tumanov

You won't if you're on NETCF V1. It should work on NETCF V2 though.






Re: Device Emulator General .Net and Debug Output

Petchey

Thank, that explains it, I'm stuck with v1. due to the build on my device.