MCP cdp_breakpoint_set

Description

Sets a breakpoint at a TypeScript/source line via CDP Debugger.setBreakpoint. The file+line are mapped to the compiled JS location using the session's loaded source map before the CDP call is made.

Delegates internally to debug_breakpoint_set.

Enables the CDP Debugger domain on first use for the current connection.

Required parameters:

  • file (string): Local source file path, as returned by cdp_source_list/cdp_source_resolve: absolute, or relative to the session project root (exact match, no suffix matching).
  • line (number): 1-based line number in that source file.

Optional parameters:

  • condition (string): JS expression; the breakpoint only triggers when it evaluates truthy.
  • sessionId (string): Session id returned by cdp_session_create. Uses the active session when omitted.

Aliases

Alias of debug_breakpoint_set.

See also

Parameters

additionalProperties: false

NameTypeRequiredValues
filestringYes
linenumberYes
conditionstringNo
sessionIdstringNo

file

Local source file path: absolute, or relative to the session project root.

line

1-based line number in that source file.

condition

JS expression gating when the breakpoint triggers.

sessionId

Session id returned by cdp_session_create. Uses the active session when omitted.


Did this page help you?