Cosmos/source2/Users/Kudzu/Breakpoints/Program.cs
2010-07-25 17:41:10 +00:00

36 lines
1.3 KiB
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace Cosmos.User.Kernel {
public class Program {
public static void Init() {
Main();
}
// If VSIP / Debugger has changed
// -Close VS
// -Run \Build\VSIP\install.bat - Builds all and installs
// Debugging the debugger
// -Can use the hive
// -Set startup project to /source2/VSIP/Cosmos.VS.Package
// -Open a Cosmos project in the hive.
// -Run it
//
static void Main() {
// boot the Cosmos kernel:
Cosmos.Sys.Boot xBoot = new Cosmos.Sys.Boot();
xBoot.Execute();
Console.WriteLine("3 Cosmos booted successfully. Type a line of text to get it echoed back:");
string xResult = Console.ReadLine();
// when Qemu shows you the above text, put a breakpoint on the next line, then type a line
// of text in qemu. you'll see that Visual Studio breaks on the breakpoint.
// Note, you cannot set the breakpoints before running the project, this is a current bug
// in Cosmos.
Console.Write("Text typed: ");
Console.WriteLine(xResult);
}
}
}