FISH\_BREAKPOINT\_PROMPT(1) fish-shell FISH\_BREAKPOINT\_PROMPT(1)

# [NAME](#NAME)

fish\_breakpoint\_prompt - define the prompt when stopped at a breakpoint

# [SYNOPSIS](#SYNOPSIS)

```
fish_breakpoint_prompt
```

```
function fish_breakpoint_prompt


    ...
end
```

# [DESCRIPTION](#DESCRIPTION)

**fish\_breakpoint\_prompt** is the prompt function when asking for input in response to a breakpoint &lt;&gt; command.

The exit status of commands within **fish\_breakpoint\_prompt** will not modify the value of $status &lt;#variables-status&gt; outside of the **fish\_breakpoint\_prompt** function.

**fish** ships with a default version of this function that displays the function name and line number of the current execution context.

# [EXAMPLE](#EXAMPLE)

A simple prompt that is a simplified version of the default debugging prompt:

```
function fish_breakpoint_prompt -d "Write out the debug prompt"


    set -l function (status current-function)


    set -l line (status current-line-number)


    set -l prompt "$function:$line >"


    echo -ns (set_color $fish_color_status) "BP $prompt" (set_color --reset) ' '
end
```

# [Copyright](#Copyright)

fish-shell developers

October 26, 2026 4.9

---

Document: fish_breakpoint_prompt(1) from fish 4.9.3-r4 (Chainguard OS)
Source: https://github.com/fish-shell/fish-shell
