|
Este artículo se tradujo de forma manual. Mueva el puntero sobre las frases del artículo para ver el texto original.
|
Traducción
Original
|
Debug (Clase)
Ensamblado: System (en System.dll)
El tipo Debug expone los siguientes miembros.
| Nombre | Descripción | |
|---|---|---|
![]() ![]() ![]() | AutoFlush | |
![]() ![]() ![]() | IndentLevel | |
![]() ![]() ![]() | IndentSize | |
![]() ![]() ![]() | Listeners |
| Nombre | Descripción | |
|---|---|---|
![]() ![]() ![]() ![]() | Assert(Boolean) | |
![]() ![]() ![]() ![]() | Assert(Boolean, String) | |
![]() ![]() ![]() ![]() | Assert(Boolean, String, String) | |
![]() ![]() | Assert(Boolean, String, String, Object[]) | |
![]() ![]() ![]() | Close | |
![]() ![]() ![]() | Fail(String) | |
![]() ![]() ![]() | Fail(String, String) | |
![]() ![]() ![]() | Flush | |
![]() ![]() | Indent | |
![]() ![]() | Print(String) | |
![]() ![]() | Print(String, Object[]) | |
![]() ![]() | Unindent | |
![]() ![]() ![]() | Write(Object) | |
![]() ![]() ![]() | Write(String) | |
![]() ![]() ![]() | Write(Object, String) | |
![]() ![]() ![]() | Write(String, String) | |
![]() ![]() ![]() | WriteIf(Boolean, Object) | |
![]() ![]() ![]() | WriteIf(Boolean, String) | |
![]() ![]() ![]() | WriteIf(Boolean, Object, String) | |
![]() ![]() ![]() | WriteIf(Boolean, String, String) | |
![]() ![]() ![]() ![]() | WriteLine(Object) | |
![]() ![]() ![]() ![]() | WriteLine(String) | |
![]() ![]() ![]() | WriteLine(Object, String) | |
![]() ![]() | WriteLine(String, Object[]) | |
![]() ![]() ![]() | WriteLine(String, String) | |
![]() ![]() ![]() | WriteLineIf(Boolean, Object) | |
![]() ![]() ![]() | WriteLineIf(Boolean, String) | |
![]() ![]() ![]() | WriteLineIf(Boolean, Object, String) | |
![]() ![]() ![]() | WriteLineIf(Boolean, String, String) |
Nota |
|---|
<configuration>
<system.diagnostics>
<trace autoflush="true" indentsize="7" />
</system.diagnostics>
</configuration>
Nota |
|---|
| Topic | Location |
|---|---|
| Cómo: Realizar compilación condicional con Trace y Debug | Depuración con .NET Framework |
| Cómo: Realizar el seguimiento del código en una aplicación | Depuración con .NET Framework |
| Cómo: Crear e inicializar agentes de escucha de seguimiento | Depuración con .NET Framework |
| Cómo: Configurar modificadores de seguimiento | Depuración con .NET Framework |
| Cómo: Agregar instrucciones de seguimiento al código de una aplicación | Depuración con .NET Framework |
| Cómo: Crear e inicializar agentes de escucha de seguimiento | Depuración con .NET Framework |
| Cómo: Realizar compilación condicional con Trace y Debug | Depuración con .NET Framework |
| Cómo: Configurar modificadores de seguimiento | Depuración con .NET Framework |
| Cómo: Realizar el seguimiento del código en una aplicación | Depuración con .NET Framework |
| Cómo: Agregar instrucciones de seguimiento al código de una aplicación | Depuración con .NET Framework |
// Specify /d:DEBUG when compiling. using System; using System.Data; using System.Diagnostics; class Test { static void Main() { Debug.Listeners.Add(new TextWriterTraceListener(Console.Out)); Debug.AutoFlush = true; Debug.Indent(); Debug.WriteLine("Entering Main"); Console.WriteLine("Hello World."); Debug.WriteLine("Exiting Main"); Debug.Unindent(); } }
Windows 7, Windows Vista SP1 o posterior, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (no se admite Server Core), Windows Server 2008 R2 (se admite Server Core con SP1 o posterior), Windows Server 2003 SP2
.NET Framework no admite todas las versiones de todas las plataformas. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.

