Setting up debugger

Last post 06-27-2008 1:52 AM by Ganeshyb. 1 replies.

Sort Posts:

  • Setting up debugger

    06-26-2008, 2:17 PM

    Hi, I am trying to setup debugger using System.Diagnostic from .NET 2.0 ... in my web.config ... it looks like this:

    ....

    <system.diagnostics>

    <trace autoflush="false" indentsize="4">

    <listeners>

    <add name="myListener" type="System.Diagnostics.TextWriterTraceListener,System" initializeData="c:\myListener.log" />

    </listeners>

    </trace>

    </system.diagnostics>

    <system.web

    <compilation defaultLanguage="c#" debug="false">

    <assemblies>

    ......

    And in my code-behind .. I used Debug.WriteLine("123","abc") .. but when I run the page, no error but also I don't see the file on my server "c:\myListener.log" ... what did I missed out??

  • Re: Setting up debugger

    06-27-2008, 1:52 AM
    Answer
    • Participant
      1,122 point Participant
    • Ganeshyb
    • Member since 11-02-2007, 12:07 AM
    • Posts 203

    Try Trace.Write

    Thanks
    Ganesh


    If you find my reply help you Mark it Answered.
Page 1 of 1 (2 items)