Skip to content

Instantly share code, notes, and snippets.

@matarillo
Created April 21, 2010 10:15
Show Gist options
  • Save matarillo/373657 to your computer and use it in GitHub Desktop.
Save matarillo/373657 to your computer and use it in GitHub Desktop.
using System;
using System.Diagnostics;
namespace Debuggee
{
class Program
{
static void Main(string[] args)
{
Debugger.Log(1, "category", "test debugger log\r\n");
if (Debugger.IsAttached)
{
Console.WriteLine("Debugger.IsAttached");
}
if (Debugger.IsLogging())
{
Console.WriteLine("Debugger.IsLogging()");
}
Debugger.Break();
Console.WriteLine("program end.");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment