Methods
# addCommand(name, handler)
Add custom debug command
Parameters:
Name | Type | Description |
---|---|---|
name |
string
|
Command name |
handler |
function
|
Command handler |
# execute(command, context)
Execute debug command
Parameters:
Name | Type | Default | Description |
---|---|---|---|
command |
string
|
Command string |
|
context |
*
|
null | Execution context |
# getLogs(level) → {Array}
Get filtered logs
Parameters:
Name | Type | Default | Description |
---|---|---|---|
level |
string
|
null | Filter by level |
Filtered logs
Array
# log(message, level)
Log message
Parameters:
Name | Type | Default | Description |
---|---|---|---|
message |
string
|
Log message |
|
level |
string
|
info | Log level |