name |
cbbaseinfo |
cbparameters |
data |
debug |
description |
Sends a log message to the debug websocket and waits for a response. |
|
parameters |
returns |
name |
typeName |
description |
log |
string |
The log message to send. |
|
name |
typeName |
description |
type |
logType |
The type of the log message (info, error, warning). |
|
|
signatureTypeName |
description |
typeArgs |
Promise |
A promise that resolves with the response from the debug event. |
type |
name |
reference |
DebugAddLogResponse |
|
|
|
|
name |
category |
link |
debug |
debug |
debug.md |
|
//error is a varialbe that stored error log
const error = "error log"
//// Calling the `codebolt.debug.debug` method to log the error with its type (e.g., "warning", "error", etc.)
const fileData = await codebolt.debug.debug(error, "error")
//after executing this command then show the error in debug section on coltbolt.

While executing the codebolt.debug.debug method, the error will be shown in the debug section of Codebolt.