Search code examples
debuggingdirectorypathjuliajuno-ide

Why does Juno debugger try to search files in some random directory?


I'd like to use the debugger in Juno. I have multiple files, say file1, file2 and file3, all stored in one directory, say directory1. However, when I try to run the debugger, it claims

ERROR: could not open file /directory2/file3.jl

How come it does not find my files? It runs just fine, without the debugger. Do I need to change some PATH variable (REPL?) or something to tell it where to look for files?


Solution

  • Are you're includeing those files? If so, that's a bug in Juno's debugger.

    Until this is fixed, you can either

    • use absolute paths in your include statements, e.g. include("/foo/bar/baz.jl") instead of include("baz.jl")
    • or directly enter the function call (with e.g. Juno.@enter start() or the "Run Block" command).