Info: Zenodo’s user support line is staffed on regular business days between Dec 23 and Jan 5. Response times may be slightly longer than normal.

Published May 9, 2016 | Version v1
Conference paper Open

Accessing local variables during debugging

  • 1. Aarhus University
  • 2. Moscow Center for Continuous Mathematical Education

Description

Any reasonably large program has to use local variables. It is quite common in the Lisp language family to also allow functions that exist only in a local scope. Scoping rules often allow compilers to optimize away parts of the local environment; doing that is good for performance, but sometimes inconvenient for debugging.

We present a debugging library for Common Lisp that ensures access to the local variables during debugging. To prevent the optimisations from removing access to these variables, we use code-walking macros to store references to the local variables (and functions) inside global variables.

Files

debugging-local-variables.pdf

Files (90.7 kB)

Name Size Download all
md5:6d40d4bac689c1a04b45d8da308a9fc9
90.7 kB Preview Download