# Toggle physics.debug at runtime (DEF-1783) (SOLVED)

**URL:** <https://forum.defold.com/t/toggle-physics-debug-at-runtime-def-1783-solved/1638>\
**Category:** Feature requests (USE GITHUB)\
**Created:** [April 21, 2016, 11:25pm UTC](https://forum.defold.com/t/toggle-physics-debug-at-runtime-def-1783-solved/1638 "2016-04-21T23:25:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![unindented](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/unindented/32/718_2.png) [@unindented](https://forum.defold.com/u/unindented)\
**Post date:** [April 21, 2016, 11:25pm UTC](https://forum.defold.com/t/toggle-physics-debug-at-runtime-def-1783-solved/1638/1 "2016-04-21T23:25:09Z")

</div>

Is there a way to toggle `physics.debug` at runtime, the same way I can toggle profiling info?

```lua
function on_input(_, action_id, action)
  if action_id == hash_debug and action.released then
    msg.post("@system:", "toggle_profile")
  end
end

```

---

<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:** [April 22, 2016, 4:22am UTC](https://forum.defold.com/t/toggle-physics-debug-at-runtime-def-1783-solved/1638/2 "2016-04-22T04:22:43Z")

</div>

Good idea. I’ve created a ticket for this: DEF-1783

---

<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:** [September 1, 2016, 4:49am UTC](https://forum.defold.com/t/toggle-physics-debug-at-runtime-def-1783-solved/1638/3 "2016-09-01T04:49:16Z")

</div>

Fixed in 1.2.87: [Defold 1.2.87 has been released](https://forum.defold.com/t/defold-1-2-87-has-been-released/2766)
