Skip to content

Fix IEx.__break__!/3 fallback clause arity#15595

Merged
josevalim merged 1 commit into
elixir-lang:mainfrom
AlexGx:ag-iex_invalid_breakpoing_fallb
Jul 12, 2026
Merged

Fix IEx.__break__!/3 fallback clause arity#15595
josevalim merged 1 commit into
elixir-lang:mainfrom
AlexGx:ag-iex_invalid_breakpoing_fallb

Conversation

@AlexGx

@AlexGx AlexGx commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Before

iex> break! 123
** (FunctionClauseError) no function clause matching in IEx.__break__!/3    
    
    The following arguments were given to IEx.__break__!/3:
...

After

iex> break! 123
** (ArgumentError) unknown expression to break on, expected one of:

  * Mod.fun/arity, such as: URI.parse/1
  * Mod.fun(arg1, arg2, ...), such as: URI.parse(_)
  * Mod.fun(arg1, arg2, ...) when guard, such as: URI.parse(var) when is_binary(var)

Got 123

Changes

  • IEx.__break__!/3 fix arity
  • test added

@josevalim josevalim merged commit ac8c3dd into elixir-lang:main Jul 12, 2026
15 checks passed
@josevalim

Copy link
Copy Markdown
Member

💚 💙 💜 💛 ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants