oxinabox / MagneticReadHead.jl

A cassette-based debugger | The Other Debugger
MIT License
50 stars 6 forks source link

Absolute paths are needed for breakpoint on lines? #32

Closed KristofferC closed 5 years ago

KristofferC commented 5 years ago
julia> set_breakpoint!("../file.jl", 3)
┌ Warning: No matching rules could be constructed)
│   methods =
│   statement_inds = 0-element Array{Any,1}
└ @ MagneticReadHead ~/.julia/packages/MagneticReadHead/W3Hgq/src/breakpoints.jl:13
1-element Array{MagneticReadHead.Rule,1}:
 MagneticReadHead.Rule{Method}(gg(x) in Main at /mnt/c/Users/Kristoffer/Debugging/file.jl:2, 2)

julia> set_breakpoint!(abspath("../file.jl"), 3)
1-element Array{MagneticReadHead.Rule,1}:
 MagneticReadHead.Rule{Method}(gg(x) in Main at /mnt/c/Users/Kristoffer/Debugging/file.jl:2, 2)
oxinabox commented 5 years ago

I think it isn't absolute paths, I think it is .. in particular, e.g. in that case set_breakpoint!("file.jl", 3) will not give that error.

But this does need to be fixed.