mlua icon indicating copy to clipboard operation
mlua copied to clipboard

Luau breakpoint support

Open cheesycod opened this issue 10 months ago • 2 comments

Luau apparently supports breakpoints using lua_breakpoint API. Can support for this be added?

cheesycod avatar Feb 20 '25 15:02 cheesycod

Can support for this be added?

I'm sure it can. Do you have any ideas how it should look like? It requires a line number which (sometimes) can be tricky to obtain. I suppose this feature should be useful mostly for interactive debuggers / IDEs, and normal runtimes can benefit from hooks. Do you have any specific use-case for this feature?

khvzak avatar Feb 24 '25 19:02 khvzak

Can support for this be added?

I'm sure it can. Do you have any ideas how it should look like? It requires a line number which (sometimes) can be tricky to obtain. I suppose this feature should be useful mostly for interactive debuggers / IDEs, and normal runtimes can benefit from hooks. Do you have any specific use-case for this feature?

Implementing a basic debugger in my runtime is the specific use case from the feature. I unfortunately don't have a full picture of what it should look like besides setting breakpoints at a given line number and breaking there (and calling a callback)

cheesycod avatar Feb 26 '25 00:02 cheesycod