Skip to main content

codebolt.debug

Debugging utilities for troubleshooting and monitoring applications.

Available Tools

  • debug_open_browser - Open browser for debugging
  • debug_add_log - Add a debug log message

Tool Parameters

debug_open_browser

Requests to open a debug browser at the specified URL and port.

ParameterTypeRequiredDescription
urlstringYesThe URL where the debug browser should be opened
portnumberYesThe port on which the debug browser will listen

debug_add_log

Sends a log message to the debug system.

ParameterTypeRequiredDescription
logstringYesThe log message to send
typestringYesThe type of log message: "info", "error", or "warning"

Sample Usage

// Open browser for debugging
const browserResult = await codebolt.tools.executeTool(
"codebolt.debug",
"debug_open_browser",
{ url: "https://example.com", port: 3000 }
);

// Add a debug log
const logResult = await codebolt.tools.executeTool(
"codebolt.debug",
"debug_add_log",
{ log: "Debug message here", type: "info" }
);
info

This functionality provides debugging capabilities through the MCP interface.