unknownworlds / decoda

Decoda Lua IDE and debugger
GNU General Public License v3.0
903 stars 266 forks source link

Debugger Fastmode #6

Closed fsfod closed 10 years ago

fsfod commented 11 years ago

This pull request is only for the fast mode for when breakpoints are set I don't know if you want the fast mode for no breakpoints also included in this pull request. The code almost ready to be merged but it would be great to have you input on anything you think needs changing.

This fast mode works by only using the Lua call hook when there is no Lua functions in the call stack with breakpoints set. The call stack checking and line,return hooks are only turned on when entering a function with breakpoints set and will automatically turn off when there are no functions with breakpoints left in the stack. The hook mode switching is also paused when the debugger is stepping.

The hook mode could maybe downgraded to just call and returns when the current function with breakpoints calls another function.