# Tuning up Lua #2. How to add support for debug.traceback?

**URL:** <https://forum.heroiclabs.com/t/tuning-up-lua-2-how-to-add-support-for-debug-traceback/2405>\
**Category:** Runtime Framework\
**Tags:** lua\
**Created:** [February 25, 2022, 10:47am UTC](https://forum.heroiclabs.com/t/tuning-up-lua-2-how-to-add-support-for-debug-traceback/2405 "2022-02-25T10:47:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrecrow](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@andrecrow](https://forum.heroiclabs.com/u/andrecrow)\
**Post date:** [February 25, 2022, 10:47am UTC](https://forum.heroiclabs.com/t/tuning-up-lua-2-how-to-add-support-for-debug-traceback/2405/1 "2022-02-25T10:47:12Z")

</div>

Good day!  
I wonder, why there is no `debug.traceback` support in nakama. Is there a way to enable it?

I would like to wrap some match logic into

```auto
status, err, ret = xpcall (function() return match_cmd_handler_func() end, debug.traceback)

```

So that I return error to client, print traceback, and do not get the connection closed and match stopped. It would really help in development and debug.

---

<div class="post-metadata">

**Author:** ![ftkg](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/ftkg/32/1180_2.png) [@ftkg](https://forum.heroiclabs.com/u/ftkg)\
**Post date:** [February 25, 2022, 3:27pm UTC](https://forum.heroiclabs.com/t/tuning-up-lua-2-how-to-add-support-for-debug-traceback/2405/2 "2022-02-25T15:27:48Z")

</div>

Good day @andrecrow

Nakama uses the `gopher-lua` runtime, which does not support it.  
See more details here:

> **[Basics - Heroic Labs Documentation](https://heroiclabs.com/docs/nakama/server-framework/basics/#restrictions)**
>
> Documentation for the Nakama realtime and social server for games and apps.

> **[GitHub - yuin/gopher-lua: GopherLua: VM and compiler for Lua in Go](https://github.com/yuin/gopher-lua#unsupported-functions)**
>
> GopherLua: VM and compiler for Lua in Go. Contribute to yuin/gopher-lua development by creating an account on GitHub.
