SquidDev, on 23 May 2015 - 05:25 PM, said:
This is an advanced lua debugger without using the debug api.
Features:
- stepping through your program while seeing the source
- show local and globals variables
- show which functions have been called (f4)
- set breakpoint and run until you reach them
- step-into own function and step-over
- stepping backwards lightweight (undoing changed)
- stepping backwards heavyweight (replay the program to last point)
- stops on lines which throw errors (so you can see the locals or step back)
- reverses some functions (like the turtle ones)
- stop the program while it is running (f6 in source window)
- lua prompt in the middle of the program execution (f10)
local function poop() end
Screenshots:
Technical details:
Every start of a line gets a _lbpcf() call (line breakpoint call function). It prints the source and waits for user input. The local statements get replaced by _cnlv (create new local variable) so that they can be handled with the __index-metamethod of the environment. _bscf and _becf (block start/end call function) handle the scoping. For how the modified program look, see the .crash file that is created.
System requirements:
Required:
- CraftOS 1.74 (might work for lower versions)
- >0 tps
- Advanced Computer with CraftOS 1.74
- 20 tps
pastebin get LdKK3BTE
Edited by Lion4ever, 04 December 2015 - 06:22 PM.

















