The @enter should be prepended to the function in the REPL, not in the file itself. It should be something like this:
julia> include("/home/calvin/Documents/git/codes/fc.jl/examples/test.jl") julia> @enter function_to_debug(args_to_function) On Sat, Nov 19, 2016 at 11:43 AM, <chobbes...@gmail.com> wrote: > Thanks for the comments. I tried what you suggested by adding @enter at the > beginning of a line where a function is called. But an error was thrown. > > julia> include("/home/calvin/Documents/git/codes/fc.jl/examples/test.jl") > ERROR: LoadError: AssertionError: isa(arg,Expr) && arg.head == :call > in include_from_node1(::String) at ./loading.jl:488 > while loading /home/calvin/Documents/git/codes/fc.jl/examples/test.jl, in > expression starting on line 19 > > Am I missing anything? Thanks! > > > On Friday, November 18, 2016 at 8:11:45 PM UTC, Michele Zaffalon wrote: >> >> You @enter the function, not the file. What function would you call once >> you include test.jl? That is the function to which you should prepend >> @enter. >> >> On Fri, Nov 18, 2016 at 6:49 PM, <chobb...@gmail.com> wrote: >>> >>> >>> >>> Hi there, >>> >>> I'm totally new to the new debuggers. What I'm aiming at is to go through >>> a file (it's a file calling other packages and functions therein.) line by >>> line, just like in matlab. The first step is to step in the file using >>> gallium. I know how to traverse a function in terminal using Gallium. But it >>> seems that I can't enter a file by doing the same thing like: >>> >>> julia> @enter test.jl >>> ERROR: BoundsError: attempt to access 0-element Array{Int64,1} at index >>> [0] >>> >>> >>> How can I enter a file via Gallium? Is it possible at all? Thanks. >> >> >