Created
April 21, 2010 10:15
-
-
Save matarillo/373657 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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