Open
Description
Debug dose not have property Listeners
now, how can I debug my application just like the example:
Debug.Listeners.Add(new TextWriterTraceListener(Console.Out)); //error
Debug.AutoFlush = true;
Debug.Indent();
Debug.WriteLine("Entering Main");
Document details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: d146a96f-b6d3-bb92-23a8-2967a05445f5
- Version Independent ID: 00211a47-71a0-16bd-6e7b-88bb1b11fadd
- Content: Debug Class (System.Diagnostics)
- Content Source: xml/System.Diagnostics/Debug.xml
- Product: dotnet-api
- GitHub Login: @mairaw
- Microsoft Alias: mairaw