CSCI 4150: Introduction to Artificial Intelligence, Fall 2005

Tips for using 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.


Using Scheme

Here are a few other 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: