Script level debugging...

Anyone have any good ideas for script level debugging? Currently im creating text actors and sprintf() strcpy() text into it to track variable values and so on. A debugger spew window though at the least would be very nice.