# Adding logs to Base while debugging user code

**URL:** https://discourse.julialang.org/t/adding-logs-to-base-while-debugging-user-code/22689
**Category:** General Usage
**Tags:** question, debug
**Created:** [April 3, 2019, 11:37am UTC](https://discourse.julialang.org/t/adding-logs-to-base-while-debugging-user-code/22689 "2019-04-03T11:37:32Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ksamtsak](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ksamtsak/32/10585_2.png) [@ksamtsak](https://discourse.julialang.org/u/ksamtsak)
#### Post date: [April 3, 2019, 11:37am UTC](https://discourse.julialang.org/t/adding-logs-to-base-while-debugging-user-code/22689/1 "2019-04-03T11:37:32Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)
#### Post date: [April 3, 2019, 12:23pm UTC](https://discourse.julialang.org/t/adding-logs-to-base-while-debugging-user-code/22689/2 "2019-04-03T12:23:24Z")

</div>

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