Skip to main content
Glama

set_breakpoint

Set breakpoints in JavaScript/TypeScript code to pause execution at specific lines, with optional conditions to trigger only when expressions evaluate to true.

Instructions

Sets a breakpoint at a specific location in the code. The breakpoint will pause execution when the specified line is reached. You can set conditional breakpoints that only trigger when an expression evaluates to true.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYesID of the debugging session.
urlYesURL of the script where the breakpoint should be set. For Node.js, use file:// URLs (e.g., file:///path/to/script.js). For remote scripts, use the full URL. Use list_scripts to find available scripts.
line_numberYesLine number (0-based) where the breakpoint should be set. Note: Most editors display 1-based line numbers, so subtract 1.
column_numberNoOptional column number (0-based). Useful for setting breakpoints in minified code.
conditionNoOptional JavaScript expression. The breakpoint only triggers when this expression evaluates to true. Example: "count > 100" or "user.name === 'admin'"

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/johngrimes/mcp-js-debugger'

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