Skip to content
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

Breakpoint not triggering #1231

Open
bkerec opened this issue Apr 18, 2024 · 0 comments
Open

Breakpoint not triggering #1231

bkerec opened this issue Apr 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@bkerec
Copy link

bkerec commented Apr 18, 2024

Let's say that we have the following code:

1| if condition then
2|    ...
3| end
4|
5| local var = 1

Calling a lua_breakpoint on line 3 should place the breakpoint on line 5, but debugbreak callback is never called. Everything works as expected if I call lua_breakpoint on line 5 directly.

Another thing I observed is when I run this code in an update loop (each iteration I call lua "update" function from c++ code) and I execute the following:

  • place BP on line 3 (is placed on line 5)
  • remove BP on line 5
  • place BP on line 5

debugbreak callback will be called (VM is "idling" between BP calls), but if I execute the same sequence from within debugbreak callback (VM execution never "idle"), it will not be called.

Is that an actual bug or it might be something wrong with my setup or is this behavior expected and nothing is broken?

@bkerec bkerec added the bug Something isn't working label Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant