Skip to content

Luau breakpoint support #533

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
cheesycod opened this issue Feb 20, 2025 · 2 comments
Open

Luau breakpoint support #533

cheesycod opened this issue Feb 20, 2025 · 2 comments

Comments

@cheesycod
Copy link

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

@khvzak
Copy link
Member

khvzak commented Feb 24, 2025

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?

@cheesycod
Copy link
Author

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants