# Prevent usr/bin/julia from producing debug metadata

**URL:** <https://discourse.julialang.org/t/prevent-usr-bin-julia-from-producing-debug-metadata/3994>\
**Category:** Internals & Design\
**Tags:** question\
**Created:** [May 30, 2017, 6:28pm UTC](https://discourse.julialang.org/t/prevent-usr-bin-julia-from-producing-debug-metadata/3994 "2017-05-30T18:28:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![singam-sanjay](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/singam-sanjay/32/1721_2.png) [@singam-sanjay](https://discourse.julialang.org/u/singam-sanjay)\
**Post date:** [May 30, 2017, 6:28pm UTC](https://discourse.julialang.org/t/prevent-usr-bin-julia-from-producing-debug-metadata/3994/1 "2017-05-30T18:28:51Z")

</div>

[Julia at 6b0d54e6cb4272c609489a05bf8404e89befab7e](https://github.com/JuliaLang/julia/tree/6b0d54e6cb4272c609489a05bf8404e89befab7e) produces debug metadata when invoked as usr/bin/julia. Earlier, debug metadata ( and intrinsics ) were inserted into the IR only by usr/bin/julia-debug.

Is there a way to disable usr/bin/julia from producing this metadata ?

---

<div class="post-metadata">

**Author:** ![yuyichao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yuyichao/32/20_2.png) [@yuyichao](https://discourse.julialang.org/u/yuyichao)\
**Post date:** [May 30, 2017, 6:45pm UTC](https://discourse.julialang.org/t/prevent-usr-bin-julia-from-producing-debug-metadata/3994/2 "2017-05-30T18:45:02Z")

</div>

Why do you need this? You can just strip them away if you need to.

---

<div class="post-metadata">

**Author:** ![jameson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jameson/32/23_2.png) [@jameson](https://discourse.julialang.org/u/jameson)\
**Post date:** [May 31, 2017, 6:37am UTC](https://discourse.julialang.org/t/prevent-usr-bin-julia-from-producing-debug-metadata/3994/3 "2017-05-31T06:37:38Z")

</div>

You can also run with the `-g0` flag to disable all debug info:

```julia
~/julia$ ./usr/bin/julia --help
 -g, -g <level> Enable / Set the level of debug info generation (default level is 1 if unspecified or 2 if used without a level)

~/julia$ ./usr/bin/julia-debug --help
 -g, -g <level> Enable / Set the level of debug info generation (default level for julia-debug is 2 if unspecified or if used without a level)

```
