Skip to content

Implementing a debugger: How to call lua_singlestep and/or suspend lua execution? #245

Answered by zeux
JDaance asked this question in Q&A
Discussion options

You must be logged in to vote

You definitely shouldn't run with singlestep=true all the time if performance is important. The way our debugger does this is that a breakpoint suspension yields the thread (via lua_break), and sets it to single-step before resuming when the user decides to step. We disable single step when the user resumes execution (instead of using step in/out).

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@JDaance
Comment options

@JDaance
Comment options

@ClxS
Comment options

@cppmadguy
Comment options

Answer selected by JDaance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants