# Quickly enable or disable debug draw calls (SOLVED)

**URL:** <https://forum.defold.com/t/quickly-enable-or-disable-debug-draw-calls-solved/64263>\
**Category:** Questions\
**Created:** [January 12, 2020, 4:26am UTC](https://forum.defold.com/t/quickly-enable-or-disable-debug-draw-calls-solved/64263 "2020-01-12T04:26:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![0xfe](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/0xfe/32/13052_2.png) [@0xfe](https://forum.defold.com/u/0xfe)\
**Post date:** [January 12, 2020, 4:26am UTC](https://forum.defold.com/t/quickly-enable-or-disable-debug-draw-calls-solved/64263/1 "2020-01-12T04:26:12Z")

</div>

Is there any build setting or shortcut to toggle all debug (text and line draw) calls to the ` @render` socket when:

a) building (ctrl+b) from the editor?  
b) bundling a release application?

A code-level option is potentially using some global property and wrapping all debug calls, but am wondering if an engine-level knob already exists for this.

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [January 12, 2020, 8:11am UTC](https://forum.defold.com/t/quickly-enable-or-disable-debug-draw-calls-solved/64263/2 "2020-01-12T08:11:32Z")

</div>

There’s the is\_debug flag in the engine info table:

> **[sys.get\_engine\_info() - API reference (System)](https://defold.com/ref/stable/sys/#sys.get_engine_info:)**
>
> sys.get\_engine\_info() | Defold is a free and open game engine used for development of console, desktop, mobile and web games.

You could modify your render script and get this value and not call the render.draw\_debug3d() function if it is false

---

<div class="post-metadata">

**Author:** ![0xfe](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/0xfe/32/13052_2.png) [@0xfe](https://forum.defold.com/u/0xfe)\
**Post date:** [January 13, 2020, 1:04am UTC](https://forum.defold.com/t/quickly-enable-or-disable-debug-draw-calls-solved/64263/3 "2020-01-13T01:04:44Z")

</div>

Thanks, @britzl!
