Skip to content

Better traceback for lua coroutines #8

@audinowho

Description

@audinowho

We can trace lua code when it's not in a coroutine just fine.
We can also trace C# code when it is in a coroutine due to having control over the coroutine system.
We need to be able to trace the insides of the lua coroutine due to its extensive use in scripting.

Relevant links:
https://github.com/NLua/NLua/blob/2c8a3555b93a6ab054479615237ac08c843ee7ec/src/Lua.cs#L214
https://zeux.io/2010/11/07/lua-callstack-with-c-debugger/
https://devforum.roblox.com/t/coroutinewrap-function-with-full-error-stack-traces/507738
https://github.com/Partixel/R-CoroutineErrorHandling

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions