# Debugging Module

**URL:** <https://discourse.julialang.org/t/debugging-module/1019>\
**Category:** New to Julia\
**Created:** [December 18, 2016, 6:07am UTC](https://discourse.julialang.org/t/debugging-module/1019 "2016-12-18T06:07:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason\_McConochie](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@Jason\_McConochie](https://discourse.julialang.org/u/Jason_McConochie)\
**Post date:** [December 18, 2016, 6:07am UTC](https://discourse.julialang.org/t/debugging-module/1019/1 "2016-12-18T06:07:00Z")

</div>

Appreciate guidance on whether I need to clear the workspace everytime I change my module and I need to rerun (including recompiling other modules like Gadfly):

```julia
workspace()
using Gadfly
# using LastMain.Gadfly # most times this can be used unless Julia crashes
reload("dlp.jl") # this is my module I'm debugging
using dlp #this is my module I'm debugging
fName="jTestData/Reduced_Sweeping_Test.dlp"
o=dlp.Read(fName) # call to module to debug

```

---

<div class="post-metadata">

**Author:** ![cstjean](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cstjean/32/1444_2.png) [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Post date:** [December 18, 2016, 2:22pm UTC](https://discourse.julialang.org/t/debugging-module/1019/2 "2016-12-18T14:22:59Z")

</div>

> [@Jason\_McConochie](#):
>
> ```julia
> reload("dlp.jl") # this is my module I'm debugging
> using dlp #this is my module I'm debugging
> 
> ```

This doesn’t work; `using` and `reload` are incompatible (see the [workflow tips](http://docs.julialang.org/en/release-0.5/manual/workflow-tips/)). However, [ClobberingReload.jl](https://github.com/cstjean/ClobberingReload.jl) solves that.

```julia
using ClobberingReload
using dlp

... change dlp's source code

creload("dlp")

... changes took place, no need to call workspace()

```

BTW, quote your code in triple-backquote ( ` ) to make it look nicer on this forum.
