debug
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| write | 1 | 只在debug.verbose啰嗦模式下才会工作 |
| stop | 1 | Create an error message to populate to the upper environment. |
| getEnvironmentStack | 1 | get a stackframe list of current environment traceback |
| CreateMessageInternal | 1 | Create R# internal message |
| CastCLRExceptionMessage | 1 | convert the .NET exception as the R# runtime error message. |
| PrintRExceptionStackTrace | 1 | print the stacktrace as string for a given .NET exception object |
| PrintRStackTrace | 1 | print the stacktrace as string for a given R# exception message object. |
| PrintWarningMessages | 1 | print the given warning message |
| PrintMessageInternal | 1 | return 500 error code |
| writeErrMessage | 1 | write error message to the output printer device |
| getMessagePrefix | 1 | get message prefix based on the Message.level |
| getMessageColor | 1 | get message color based on the Message.level |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| verbose | 1 | 啰嗦模式下会输出一些调试信息 |
04 Members
String, ConsoleColor)只在debug.verbose啰嗦模式下才会工作
| Name | Type | Description |
|---|---|---|
message$ | String | - |
color | ConsoleColor | - |
Create an error message to populate to the upper environment.
| Name | Type | Description |
|---|---|---|
message | Object | the message content, value of this parameter could be a string character data, a string vector or a .NET exception object. |
envir | Environment | the environment source stack of the current exception happended. |
suppress | Boolean | this parameter indicated that the R environment should not throw the exception when running in debug mode. |
suppress_log | Nullable(Of Boolean) | suppress write the internal error log file? this parameter is useful when the error stop happends inside a loop. if not suppress write the error log, then a log file in huge size may produced! |
a generated error message
get a stackframe list of current environment traceback
| Name | Type | Description |
|---|---|---|
parent | Environment | the parent enviroment traceback |
Create R# internal message
| Name | Type | Description |
|---|---|---|
messages | Object | - |
envir | Environment | - |
level | MSG_TYPES | The message level |
Exception, Environment)convert the .NET exception as the R# runtime error message.
| Name | Type | Description |
|---|---|---|
ex | Exception | - |
envir | Environment | - |
ExceptionData)print the stacktrace as string for a given .NET exception object
| Name | Type | Description |
|---|---|---|
err | ExceptionData | - |
StackFrame())print the stacktrace as string for a given R# exception message object.
| Name | Type | Description |
|---|---|---|
stacktrace | StackFrame() | - |
print the given warning message
| Name | Type | Description |
|---|---|---|
warnings | IEnumerable(Of Message) | a list of warning message |
globalEnv | GlobalEnvironment | - |
all | Boolean | - |
return 500 error code
| Name | Type | Description |
|---|---|---|
message | Message | - |
globalEnv | GlobalEnvironment | 这个参数可以为空,空值的时候会默认将消息打印在标准输出 |
this function will returns 500 error code
write error message to the output printer device
parameter redirectError2stdout only works when the parameter stdout is not nothing
| Name | Type | Description |
|---|---|---|
message | Message | - |
stdout | TextWriter | the output printer device |
redirectError2stdout | Boolean | message data will be print to the |
get message prefix based on the Message.level
| Name | Type | Description |
|---|---|---|
message | Message | - |
get message color based on the Message.level
| Name | Type | Description |
|---|---|---|
message | Message | - |
啰嗦模式下会输出一些调试信息