I did ran that command in the REPL before adding breakpoints, but the same message still appeared: Couldn't make Revise work with Juno · Issue #296 · timholy/Revise.jl · GitHub
Edited:
Thanks to @kristoffer.carlsson’s answer in the linked post, I can now add breakpoints without problem. I’m editing this and I’m going to mark this as solved to save others’ effort.
using Revise
includet("temp.jl") # name of file to be debugged
Juno.@run myfct() # must be a function call; or
# Juno.@enter myfct() # must be a function call
Reference:
“This means that you can only set breakpoints in your own scripts (that are not part of a package) if you have
includet
them.”