Skip to content

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

@fredrikekre

Description

@fredrikekre

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))                                  # <------------

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