skip to main content
10.5555/3005729.3005740acmotherconferencesArticle/Chapter ViewAbstractPublication PageselsConference Proceedingsconference-collections
Article

Accessing local variables during debugging

Published:09 May 2016Publication History

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.

References

  1. local-variable-debug-wrapper homepage. Retrieved on 22 April 2016. https://gitlab.common-lisp.net/mraskin/\\local-variable-debug-wrapperGoogle ScholarGoogle Scholar
  2. hu.dwim.walker package. Retrieved on 15 April 2016. http://dwim.hu/darcsweb/darcsweb.cgi?\\r=LIVE\%20hu.dwim.walker;a=summaryGoogle ScholarGoogle Scholar
  3. PRY REPL for Ruby. Retrieved on 15 April 2016. http://pryrepl.org/Google ScholarGoogle Scholar
  4. ANSI Common Lisp Specification, ANSI/X3.226-1994. American National Standards Institute, 1994.Google ScholarGoogle Scholar
  5. Steel Bank Common Lisp homepage. Retrieved on 15 April 2016. http://www.sbcl.org/Google ScholarGoogle Scholar
  6. GNU CLISP homepage. Retrieved on 15 April 2016. http://www.clisp.org/.Google ScholarGoogle Scholar

Index Terms

  1. Accessing local variables during debugging

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in
    • Article Metrics

      • Downloads (Last 12 months)0
      • Downloads (Last 6 weeks)0

      Other Metrics