debugger_set_breakpoint_at_function
Set a breakpoint on any function expression, such as app.saveOrder, without knowing its file. Pause at the first statement, with optional condition for targeted debugging.
Instructions
Set a breakpoint on a function you can name, without knowing which file it lives in. Give any expression that evaluates to a function — 'app.saveOrder', 'MyClass.prototype.load', a framework helper — and DevCDP finds its definition and breaks at its first statement. Use this when you know what runs but not where it is defined; use debugger_set_breakpoint when you already have a file and line.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| condition | No | JavaScript condition — pause only when it is truthy, e.g. 'id === 42'. | |
| auto_resume | No | Default true: capture scope/console/network on hit, then resume, so the page is never left frozen and the action that tripped it completes. Pass false to hold the pause for stepping; released after maxPauseMs regardless. | |
| function_expression | Yes | JavaScript evaluating to the function itself — no call parentheses. For example 'app.store.save', not 'app.store.save()'. |