Adding logs to Base while debugging user code

question
debug
#1

While debugging my code, I’d like to be able to examine what is going on in Base functions that are called by my code, by adding logging statements. However, changing code in ${INSTALL_DIR}/share/julia/base and restarting Julia doesn’t seem to have any effect.

Is this because Base is precompiled and is not recompiled again every time I start Julia? Is there any way to make my current session dynamically load this source code, or to force recompilation of Base?

0 Likes

#2

Yes, you can use Revise.jl or Juno for dynamically changing Base code.

1 Like