set_breakpoint
Set a line or conditional breakpoint (supports pending breakpoints)
How to use it
set_breakpoint is exposed by the Xdebug MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the set_breakpoint tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Xdebug MCP
npm install -g xdebug-mcpOther tools in Xdebug MCP (39)
Add a logpoint with message template
Add a persistent watch expression
Close a debug session
Continue to next breakpoint
Detach and let script continue
Evaluate a PHP expression
Evaluate all watches and detect changes
Get available variable contexts
View coverage statistics
View log output and hit statistics
View memory usage over time
Get current profiling statistics
Get detailed state of a session
Get source code
Get the call stack
Get a specific variable
Get all variables in scope
List all breakpoints including pending
List all saved profiles
List all active debug sessions
List all active watches
Load a saved debug profile
Remove a breakpoint (works with pending breakpoints)
Remove a logpoint
Remove a watch expression
Save current configuration as a profile
Set which session is active
Break on function calls (supports pending breakpoints)
Break on exceptions (supports pending breakpoints)
Set a variable's value
Start tracking code coverage
Start memory/time profiling
Step into function calls
Step out of current function
Step over (skip function internals)
Stop debugging
Stop and get coverage report
Stop profiling and get results
Enable/disable or modify a breakpoint