Skip to main content
Glama
workbackai

MCP NodeJS Debugger

by workbackai

continue

Resume NodeJS code execution after pausing at a breakpoint to continue debugging your application.

Instructions

Continues code execution

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler function for the 'continue' MCP tool. Checks if debugger is paused, then sends 'Debugger.resume' command to resume execution and returns status message.
      async () => {
        try {
          // Ensure debugger is enabled
          if (!inspector.debuggerEnabled) {
            await inspector.enableDebugger();
          }
          
          if (!inspector.paused) {
            return {
              content: [{
                type: "text",
                text: "Debugger is not paused at a breakpoint"
              }]
            };
          }
          
          await inspector.send('Debugger.resume', {});
          
          return {
            content: [{
              type: "text",
              text: "Execution resumed"
            }]
          };
        } catch (err) {
          return {
            content: [{
              type: "text",
              text: `Error continuing execution: ${err.message}`
            }]
          };
        }
      }
    );
  • Registration of the 'continue' tool using server.tool() with name, description, empty schema, and inline handler function.
    server.tool(
      "continue",
      "Continues code execution",
      {},
      async () => {
        try {
          // Ensure debugger is enabled
          if (!inspector.debuggerEnabled) {
            await inspector.enableDebugger();
          }
          
          if (!inspector.paused) {
            return {
              content: [{
                type: "text",
                text: "Debugger is not paused at a breakpoint"
              }]
            };
          }
          
          await inspector.send('Debugger.resume', {});
          
          return {
            content: [{
              type: "text",
              text: "Execution resumed"
            }]
          };
        } catch (err) {
          return {
            content: [{
              type: "text",
              text: `Error continuing execution: ${err.message}`
            }]
          };
        }
      }
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/workbackai/mcp-nodejs-debugger'

If you have feedback or need assistance with the MCP directory API, please join our Discord server