## `breakpoint`

### Signature

```solidity
function breakpoint(string calldata char) external;
function breakpoint(string calldata char, bool enabled) external;
```

### Description

Places a breakpoint to jump to in the debugger view.

Calling `vm.breakpoint("<char>", true)` is equivalent to `vm.breakpoint("<char>")`. Calling `vm.breakpoint("<char>", false)` will erase the breakpoint at `<char>`.

If the same char is used multiple times, only the last one visited in execution is considered.

### Parameters

| Parameter | Type     | Description                              |
|-----------|----------|------------------------------------------|
| `char`    | `string` | Single character identifier for the breakpoint |
| `enabled` | `bool`   | Whether to enable or disable the breakpoint (optional) |

### Examples

```solidity [test/Breakpoint.t.sol]
function testBreakpoint() public {
    vm.breakpoint("a");
    // Opening the debugger and pressing 'a will jump here
}
```

![breakpoint a](/breakpoint.png)

### See Also

* [Forge Debugging](/forge/debugging) - Learn more about the interactive debugger
