toivoh / Debug.jl

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

Can't see arguments with default values in debugger #50

Closed atteson closed 10 years ago

atteson commented 11 years ago

I can't seem to see variables which have default values in the debugger as demonstrated by the following code:

using Debug

@debug function sumpow( n::Int, p::Int = 1 ) @bp n^p + sumpow( n-1, p ) end

sumpow( 10 )

toivoh commented 10 years ago

Ah, default argument values didn't exist when I wrote this so I'm sure that the AST analysis code doesn't understand them. I will see if I get some time to look at this.

toivoh commented 10 years ago

I think that 2881d5dbc290bf0324fd1ba1b89b431cd96ea64f should fix this. Please tell me if it doesn't.