Skip to content

Commit

Permalink
Make test.jl debug code inside of a function, to give it source file …
Browse files Browse the repository at this point in the history
…info
  • Loading branch information
toivoh committed Mar 5, 2013
1 parent d50c617 commit 7ad8713
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions test/test.jl
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@ println(Debug.UI.helptext)
println() println()
println("Type an expression to evaluate it in the current scope.") println("Type an expression to evaluate it in the current scope.")


@debug let @debug begin
x, y = 0, 1 function test()
@bp x, y = 0, 1
go_on = true @bp
while go_on go_on = true
println("$x, $y") while go_on
@bp x > 100 println("$x, $y")
x, y = y, x+y @bp x > 100
x, y = y, x+y
end
end end
test()
end end


end # module end # module

0 comments on commit 7ad8713

Please sign in to comment.