.Net and Debug Output

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

Answer this question

.Net and Debug Output

  • ION T

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

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



  • ECHS BACHS

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

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



  • Ashish Chawla

    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.



  • .Net and Debug Output