works fine in julia v1.10.9 with Debugger v0.7.10 (see below REPL transcript), but with julia v1.11.5 and Debugger v0.7.12 it hangs after x.
julia> f(x) = x+1
f (generic function with 1 method)
julia> using Debugger
Precompiling Debugger finished.
  5 dependencies successfully precompiled in 6 seconds. 1 already precompiled.
julia> @enter f(2)
In f(x) at REPL[2]:1
>1  f(x) = x+1
About to run: (+)(2, 1)
1|julia> x
2