Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Breakpoint in constructor (set using @__FILE__) causes error #172

Open
p-i- opened this issue Nov 5, 2016 · 0 comments
Open

Breakpoint in constructor (set using @__FILE__) causes error #172

p-i- opened this issue Nov 5, 2016 · 0 comments

Comments

@p-i-
Copy link

p-i- commented Nov 5, 2016

Bleeding edge (Juno +) Gallium, current stable Julia.

type T
  x::Int
  function T(w)
    new(2w)       # <-- breakpoint here!
  end
end

Juno.breakpoint(@__FILE__, 4)
t = T(4)
println("!")

... causes MethodError: no method matching:

LoadError: MethodError: no method matching visit(::Gallium.##77#79{Method,Gallium.Breakpoint,Gallium.##82#83}, ::Void)
Closest candidates are:
visit(::Any, !Matched::MethodTable) at reflection.jl:293
visit(::Any, !Matched::TypeMapLevel) at reflection.jl:297
visit(::Any, !Matched::TypeMapEntry) at reflection.jl:314
in visit(::Function, ::TypeMapLevel) at ./reflection.jl:300
in _breakpoint_method(::Method, ::Gallium.Breakpoint, ::Gallium.##82#83) at /Users/pi/.julia/v0.5/Gallium/src/Gallium.jl:790
in add_meth_to_bp!(::Gallium.Breakpoint, ::Method, ::Function) at /Users/pi/.julia/v0.5/Gallium/src/Gallium.jl:838
in breakpoint(::String, ::Int64) at /Users/pi/.julia/v0.5/Gallium/src/breakfile.jl:135
in breakpoint(::String, ::Vararg{Any,N}) at /Users/pi/.julia/v0.5/Atom/src/debugger/entry.jl:27
in breakpoint(::String, ::Vararg{Any,N}) at /Users/pi/.julia/v0.5/Atom/src/debugger/load.jl:13
in breakpoint(::String, ::Vararg{Any,N}) at /Users/pi/.julia/v0.5/Juno/src/user.jl:8
in incl...

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

No branches or pull requests

1 participant