Skip to content

dbg() stopped working on OTP 28 #14607

Closed
Closed
@gmile

Description

@gmile

Elixir and Erlang/OTP versions

Erlang/OTP 28 [erts-16.0.1] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [jit]

Elixir 1.18.4 (compiled with Erlang/OTP 28)

Operating system

macOS

Current behavior

This script:

# issue-example.exs
a = 1
b = 2

dbg()

IO.puts(a + b)

(code besides dbg() itself is not significant here, it's just here so the script is not completely empty)

Running the above like this:

iex --dbg pry issue-example.exs

Results in the following output:

Erlang/OTP 28 [erts-16.0.1] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [jit]

Cannot pry #PID<0.107.0> at sample.exs:4. Is an IEx shell running?
binding() #=> [a: 1, b: 2]

3
Interactive Elixir (1.18.4) - press Ctrl+C to exit (type h() ENTER for help)

Note the Cannot pry #PID<0.107.0> at sample.exs:4. Is an IEx shell running? message.

Expected behavior

Script execution stops at dbg() breakpoint for debugging.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions