Permalink
Browse files

Make test.jl debug code inside of a function, to give it source file …

…info
  • Loading branch information...
1 parent d50c617 commit 7ad871317da726b650e8718705d11c552296a5ec @toivoh committed Mar 5, 2013
Showing with 11 additions and 8 deletions.
  1. +11 −8 test/test.jl
View
@@ -6,15 +6,18 @@ println(Debug.UI.helptext)
println()
println("Type an expression to evaluate it in the current scope.")
-@debug let
- x, y = 0, 1
- @bp
- go_on = true
- while go_on
- println("$x, $y")
- @bp x > 100
- x, y = y, x+y
+@debug begin
+ function test()
+ x, y = 0, 1
+ @bp
+ go_on = true
+ while go_on
+ println("$x, $y")
+ @bp x > 100
+ x, y = y, x+y
+ end
end
+ test()
end
end # module

0 comments on commit 7ad8713

Please sign in to comment.