シンプルな C# コンソール アプリケーション (以下のコード) があると仮定します。mdbg manager wrapper を使用して段階的にデバッグしたいと思います。
using System;
namespace TestApplication
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("1");
Console.WriteLine("2");
Console.WriteLine("3");
Console.WriteLine("4");
Console.WriteLine("5");
}
}
}
MDbgEngine を使用してこのコードを段階的にデバッグする方法は?
[MTAThread]
static void Main(string[] args)
{
var debugger = new MDbgEngine();
debugger.Options.CreateProcessWithNewConsole = true;
debugger.Options.StopOnException = true;
var process = debugger.CreateProcess("TestApplication.exe", "", DebugModeFlag.Debug, null);
process.Go();
//HOW TO GO STEP BY STEP TROUGH THE TestApplication?
}