A Debugger for Standard ML
Andrew P. Tolmach, Andrew W. Appel · Journal of Functional Programming · 1995
Abstract We have built a portable, instrumentation-based, replay debugger for the Standard ML of New Jersey compiler. Traditional ‘source-level’ debuggers for compiled languages actually operate at machine level, which makes them complex, difficult to port, and intolerant of compiler optimization. For secure languages like ML, however, debugging support can be provided without reference to the underlying machine, by adding instrumentation to program source code before compilation. Because instrumented code is (almost) ordinary source, it can be processed by the ordinary compiler. Our debugger is thus independent from the underlying hardware and runtime system, and from the optimization strategies used by the compiler. The debugger also provides reverse execution, both as a user feature and an internal mechanism. Reverse execution is implemented using a checkpoint and replay system; checkpoints are represented primarily by first-class continuations.
Cited by 63 works. doi:10.1017/s0956796800001313 Open-access PDF
Authors
References
- Compilers: Principles, Techniques, and Tools
- Smalltalk-80: The Language and its Implementation
- The Definition of Standard ML
- Interlisp reference manual
- The Cornell program synthesizer
- Report on the programming language Haskell
- Concepts and experiments in computational reflection
- Miranda: A non-strict functional language with polymorphic types
- Compiling with Continuations
- Revised 4 report on the algorithmic language scheme