C# Класс kOS.Safe.Utilities.Debug

Показать файл Открыть проект

Открытые методы

Метод Описание
AddNagMessage ( NagType nag, string message ) : void

Add a string message that should be shown on the terminal the next time it shows its Welcome message. It is possible to chain several of these messages together, but remember that the terminal window is small. Keep the message short so there's room for other nag messages too.

GetCodeFragment ( List codes ) : string

This is copied almost verbatim from ProgramContext, It's here to help debug.

GetPendingNags ( ) : List

Gets a list of all the pending nag messages, and in the process of doing that it clears out any that were set to just NAGONCE.

Приватные методы

Метод Описание
Debug ( ) : System.Collections.Generic

Описание методов

AddNagMessage() публичный статический Метод

Add a string message that should be shown on the terminal the next time it shows its Welcome message. It is possible to chain several of these messages together, but remember that the terminal window is small. Keep the message short so there's room for other nag messages too.
public static AddNagMessage ( NagType nag, string message ) : void
nag NagType Should the message be shown once, or keep being shown /// every time the terminal welcome message appears?
message string Message to print
Результат void

GetCodeFragment() публичный статический Метод

This is copied almost verbatim from ProgramContext, It's here to help debug.
public static GetCodeFragment ( List codes ) : string
codes List
Результат string

GetPendingNags() публичный статический Метод

Gets a list of all the pending nag messages, and in the process of doing that it clears out any that were set to just NAGONCE.
public static GetPendingNags ( ) : List
Результат List