Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breakpoint on function stops at $(QuoteNode(f)) #352

Open
fredrikekre opened this issue Aug 8, 2024 · 1 comment
Open

Breakpoint on function stops at $(QuoteNode(f)) #352

fredrikekre opened this issue Aug 8, 2024 · 1 comment

Comments

@fredrikekre
Copy link
Contributor

Same test case as in #351:

julia> using Debugger

julia> function g()
           io = IOBuffer()
           return io
       end
g (generic function with 1 method)

julia> function f()
           x = g()
           println(x, "hello")
       end
f (generic function with 1 method)

julia> @enter f()
In f() at REPL[3]:1
 1  function f()
>2      x = g()
 3      println(x, "hello")
 4  end

About to run: (g)()
1|debug> bp add println
[ Info: added breakpoint for function println
1] println

1|debug> c
Hit breakpoint:
In println(io, xs) at strings/io.jl:75
>75  println(io::IO, xs...) = print(io, xs..., "\n")
 76
 77  ## conversion of general objects to strings ##

About to run: $(QuoteNode(print))                                  # <------------
@fredrikekre
Copy link
Contributor Author

Ah, I confused print and println in this example, but I still don't see why QuoteNode shows up here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant