Debugging with Source Code Instrumentation
Disconnected
Source code instrumentation is a way to run Lively with a simulated stack. The resulting code needs to run fast enough that it can be used by default but it also needs to capture all the necessary information to resume the computation with a stepping debugger. For details, please visit the following pages: Source Code Transformation Documentation which describes the implementation and design decision for the instrumentation and stack capturing. Demo Two demos which use source code instrumentation in conjunction with a JavaScript interpreter to step through code with a debugger. Example Stack A diagram showing the challenge of capturing variables of stack frames which are lexically-scoped and therefore accessable by inner frames. Editor A JavaScript editor with live preview of the rewritten code. Benchmark A JavaScript benchmark used to measure performance of instrumented code.