Tips for emacs, Scheme, and debugging your code

This page contains a number of tips and tools, most of which I've talked about in class, for the following topics:

If there are any questions that aren't addressed here, let me know and I'll update this document.

whuang@cs.rpi.edu; email
Last updates: September 25, 2000


Using emacs

I'm now recommending that you use gnu-emacs to write your Scheme code because a full version of gnu-emacs is more user-friendly than Edwin. If your are running on UNIX, you can run Scheme as an inferior process from emacs and use Edwin only when you need the debugger. If you are running under Windows, then you should use Edwin to interact with Scheme and for minor editing.

Here are a few useful links:

Using Scheme

Here are a few commands that should make your life a little easier. These can all be found in the MIT Scheme reference and user's manual. I highly recommend browsing these manuals.

For some assignments, you will probably want to start Scheme with more memory. In UNIX, you can just give some additional command line switches. In Windows, you should probably create some new shortcuts based on the ones that already exist in your start menu. You can edit the shortcuts to add the following command line switches.

You can get information on the amount memory that Scheme is using with the command (print-gc-statistics).

Debugging Scheme code

Debugging is a learned art. Part of that art is learning how to use available tools to see what's going on in your code. Here are a few tools/suggestions: