Class Debugger
Represents a categorized remote debugger, capable of communicating with an external host machine, including virtualizers.
Inheritance
Namespace: Cosmos.Debug.Kernel
Assembly: Cosmos.Debug.Kernel.dll
Syntax
public class Debugger : objectConstructors
| Improve this Doc View SourceDebugger(String)
Creates a new instance of the Debugger class.
Declaration
public Debugger(string section)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | section | The section the debugger refers to. | 
Properties
| Improve this Doc View SourceSection
The section the debugger refers to.
Declaration
public string Section { get; }Property Value
| Type | Description | 
|---|---|
| System.String | 
Methods
| Improve this Doc View SourceBreak()
Triggers a software breakpoint.
Declaration
public void Break()DoBochsBreak()
Triggers a Bochs breakpoint.
Declaration
public static void DoBochsBreak()DoSendNumber(Double)
Sends a 64-bit floating-point number to connected debugging hosts.
Declaration
public static void DoSendNumber(double number)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Double | number | 
DoSendNumber(Int32)
Sends a 32-bit signed integer to connected debugging hosts.
Declaration
public static void DoSendNumber(int number)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | number | 
DoSendNumber(Int64)
Sends a 64-bit signed integer to connected debugging hosts.
Declaration
public static void DoSendNumber(long number)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int64 | number | 
DoSendNumber(Single)
Sends a 32-bit floating-point number to connected debugging hosts.
Declaration
public static void DoSendNumber(float number)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Single | number | 
DoSendNumber(UInt32)
Sends a 32-bit unsigned integer to connected debugging hosts.
Declaration
public static void DoSendNumber(uint number)Parameters
| Type | Name | Description | 
|---|---|---|
| System.UInt32 | number | 
DoSendNumber(UInt64)
Sends a 64-bit unsigned integer to connected debugging hosts.
Declaration
public static void DoSendNumber(ulong number)Parameters
| Type | Name | Description | 
|---|---|---|
| System.UInt64 | number | 
Send(String)
Sends the given string to connected debugging hosts.
Declaration
public void Send(string text)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | text | The text/message to send. | 
Send(String[])
Sends multiple strings to connected debugging hosts.
Declaration
public void Send(string[] stringArray)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String[] | stringArray | The strings to send. | 
SendChannelCommand(Byte, Byte)
Sends a command to the given debug channel.
Declaration
public static void SendChannelCommand(byte channel, byte command)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Byte | channel | The channel to send the data to. | 
| System.Byte | command | The numeric command. | 
SendChannelCommand(Byte, Byte, Byte[])
Declaration
public void SendChannelCommand(byte aChannel, byte aCommand, byte[] aData)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Byte | aChannel | |
| System.Byte | aCommand | |
| System.Byte[] | aData | 
SendChannelCommand(Byte, Byte, Int32, Byte*)
Sends a command and its associated data to the given debug channel.
Declaration
public static void SendChannelCommand(byte channel, byte command, int byteCount, byte *data)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Byte | channel | The channel to send the data to. | 
| System.Byte | command | The numeric command. | 
| System.Int32 | byteCount | The amount of bytes in the data associated with the command. | 
| System.Byte* | data | The data associated with the command | 
SendInternal(Double)
Sends the given 64-bit floating-point number to all connected debugging hosts.
Declaration
public virtual void SendInternal(double number)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Double | number | 
SendInternal(Int32)
Sends the given 32-bit signed integer to all connected debugging hosts.
Declaration
public virtual void SendInternal(int number)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | number | 
SendInternal(Int64)
Sends the given 64-bit signed integer to all connected debugging hosts.
Declaration
public virtual void SendInternal(long number)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int64 | number | 
SendInternal(Single)
Sends the given 32-bit floating-point number to all connected debugging hosts.
Declaration
public virtual void SendInternal(float number)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Single | number | 
SendInternal(String)
Sends the given message to all connected debugging hosts.
Declaration
public virtual void SendInternal(string text)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | text | 
SendInternal(String[])
Sends the given strings to all connected debugging hosts.
Declaration
public virtual void SendInternal(string[] stringArray)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String[] | stringArray | 
SendInternal(UInt32)
Sends the given 32-bit unsigned integer to all connected debugging hosts.
Declaration
public virtual void SendInternal(uint number)Parameters
| Type | Name | Description | 
|---|---|---|
| System.UInt32 | number | 
SendInternal(UInt64)
Sends the given 64-bit unsigned integer to all connected debugging hosts.
Declaration
public virtual void SendInternal(ulong number)Parameters
| Type | Name | Description | 
|---|---|---|
| System.UInt64 | number | 
SendKernelPanic(UInt32)
Sends a kernel panic error code to connected debugging hosts.
Declaration
public static void SendKernelPanic(uint id)Parameters
| Type | Name | Description | 
|---|---|---|
| System.UInt32 | id | 
SendMessageBox(Int32, Char*)
Displays a message box on connected debugging hosts.
Declaration
public void SendMessageBox(int length, char *text)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | length | The length of the  | 
| System.Char* | text | The text to display in the message box, as a C-string. | 
SendMessageBox(String)
Displays a message box on connected debugging hosts.
Declaration
public void SendMessageBox(string text)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | text | The text to display. | 
SendNumber(Double)
Sends a 64-bit floating-point number to connected debugging hosts.
Declaration
public void SendNumber(double number)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Double | number | 
SendNumber(Int32)
Sends a 32-bit signed integer to connected debugging hosts.
Declaration
public void SendNumber(int number)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | number | 
SendNumber(Int64)
Sends a 64-bit signed integer to connected debugging hosts.
Declaration
public void SendNumber(long number)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int64 | number | 
SendNumber(Single)
Sends a 32-bit floating-point number to connected debugging hosts.
Declaration
public void SendNumber(float number)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Single | number | 
SendNumber(UInt32)
Sends a 32-bit unsigned integer to connected debugging hosts.
Declaration
public void SendNumber(uint number)Parameters
| Type | Name | Description | 
|---|---|---|
| System.UInt32 | number | 
SendNumber(UInt64)
Sends a 64-bit unsigned integer to connected debugging hosts.
Declaration
public void SendNumber(ulong number)Parameters
| Type | Name | Description | 
|---|---|---|
| System.UInt64 | number | 
SendPtr(Object)
Sends the pointer of the given object to any connected debugging hosts.
Declaration
public void SendPtr(object obj)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | obj |