toivoh / Debug.jl

Prototype interactive debugger for Julia
Other
86 stars 13 forks source link

debug with keyword arguments #68

Closed prezaei85 closed 9 years ago

prezaei85 commented 9 years ago

There is something wrong when @debug is used with functions with more than two keyword arguments. See below:

In  [2]: using Debug
@debug function f(x::Integer; a::Integer=4, b::Integer=5, c::Integer=6)
    return x
end
Out [2]: f (generic function with 1 method)
In  [3]: f(5, a=9)
Out [3]: 5
In  [4]: f(5, b=9)
Out [4]: 5
In  [5]: f(5, c=9)
Out [5]: ERROR: unrecognized keyword argument "c"
while loading In[5], in expression starting on line 1
toivoh commented 9 years ago

Ok, that's weird. Hope I can get some time to look at it pretty soon.

toivoh commented 9 years ago

Ok, think I found it! Should be fixed now.