ABSTRACT
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 en- sures 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.
- local-variable-debug-wrapper homepage. Retrieved on 22 April 2016. https://gitlab.common-lisp.net/mraskin/\\local-variable-debug-wrapperGoogle Scholar
- hu.dwim.walker package. Retrieved on 15 April 2016. http://dwim.hu/darcsweb/darcsweb.cgi?\\r=LIVE\%20hu.dwim.walker;a=summaryGoogle Scholar
- PRY REPL for Ruby. Retrieved on 15 April 2016. http://pryrepl.org/Google Scholar
- ANSI Common Lisp Specification, ANSI/X3.226-1994. American National Standards Institute, 1994.Google Scholar
- Steel Bank Common Lisp homepage. Retrieved on 15 April 2016. http://www.sbcl.org/Google Scholar
- GNU CLISP homepage. Retrieved on 15 April 2016. http://www.clisp.org/.Google Scholar
Index Terms
- Accessing local variables during debugging
Recommendations
Debugging native extensions of dynamic languages
ManLang '18: Proceedings of the 15th International Conference on Managed Languages & RuntimesMany dynamic programming languages such as Ruby and Python enable developers to use so called native extensions, code implemented in typically statically compiled languages like C and C++. However, debuggers for these dynamic languages usually lack ...
Interactive debugging with GHCi
Haskell '06: Proceedings of the 2006 ACM SIGPLAN workshop on HaskellWith my presentation I intend to demonstrate an implementation of breakpoint combinators in GHCi. These combinators are designed to aid the debugging process of Haskell programs by halting the execution and letting the user observe variables of their ...
Testing domain-specific languages in eclipse
OOPSLA '05: Companion to the 20th annual ACM SIGPLAN conference on Object-oriented programming, systems, languages, and applicationsDomain-specific languages (DSLs) use idioms that are closer to the abstractions found in a specific problem domain. Tool support for testing and debugging DSLs is lacking when compared to the capabilities provided for standard general purpose languages (...
Comments