Troubleshooting Flat Thunks

Debugging flat thunks generated by the thunk compiler can be difficult because the thunk mechanism is complex, and debugging tools capable of tracing through thunks are difficult to use. The following topics present an overall strategy for debugging flat thunks, several specific debugging techniques, and suggestions for how to solve many common thunking problems.