Adding logs to Base while debugging user code

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?

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

1 Like