# Quick debugging using println?

**URL:** <https://discourse.julialang.org/t/quick-debugging-using-println/51398>\
**Category:** New to Julia\
**Tags:** question\
**Created:** [December 7, 2020, 1:08pm UTC](https://discourse.julialang.org/t/quick-debugging-using-println/51398 "2020-12-07T13:08:40Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)\
**Post date:** [December 7, 2020, 1:51pm UTC](https://discourse.julialang.org/t/quick-debugging-using-println/51398/9 "2020-12-07T13:51:52Z")

</div>

For Julia have a look at this thread please

> [@Equivalent of Python if \_\_debug\_\_](https://discourse.julialang.org/t/equivalent-of-python-if-debug/25715):
>
> In Python there is a feature for simple print style debugging to be switched on or off. If you run a Python script with the -O option then if \_\_debug\_\_: print variable, variable, variable Is there an equivalent in Julia? I know you could set a constant to be true or false, bt that involves editing the code to switch on/off the debug lines.

---

_[View the full topic](https://discourse.julialang.org/t/quick-debugging-using-println/51398)._
