Home  |   Notes  |   Languages  |   Programs  |   Homework

Re: Weird Error

New Message Reply About this list Date view Thread view Subject view Author view

daward6@VT.EDU
Tue, 20 Mar 2001 02:11:20 -0500


Message-ID:  <3.0.6.32.20010320021120.00947840@damianward.net>
Date:         Tue, 20 Mar 2001 02:11:20 -0500
From: daward6@VT.EDU
Subject:      Re: Weird Error

I had a similar symptom(although not neccecarily the same problem).
I couldn't find my error, but these steps might help:

Take the imput that you have gotten back from the curator, clean it
up and make an input file that you can run to test your program,
but remove the top 2 lines that output to the file, and the bottom
parenthesis that match the top 2 lines:
You will want to watch the output as it runs. Your error may not be
in the place you suspect it is located.

After you find the sentence where you are more certain where the
program is hanging, run just that input sentence, and then break
out ( I think its Ctrl-b, but I'm not sure). Then enter the
debugger (the command is (debug)).

Press "h" and you will get a clue as to where the program was
hanging, probably a buggy function from your code, or perhaps
a function that is calling something that isn't quite right.

Then use the command (trace-both function-name) on the suspect
function, and you will see the function's input and output.
This should help you find your error.

Hope this helps
Damian

At 01:11 AM 3/20/01 -0500, you wrote:
>For some reason the input from the curator stops parsing in the middle of
>the 15th sentence of the input file. It just stops writing in the middle of
>an atom. I ran my program on that individual sentence and it parsed fine.
>I then removed that sentence from the input file and it again stopped
>writing in the middle of an atom on the new 15th line. I checked that
>sentence individually in my program and it too parses fine. Does anybody
>(GTA included) know what this quirk may be in Scheme or maybe something I am
>overlooking?
>Shea
>
>
>


New Message Reply About this list Date view Thread view Subject view Author view

Home  |   Notes  |   Languages  |   Programs  |   Homework
copyright © 2001 Virginia Tech, ALL RIGHTS RESERVED
Class site maintained by Stephen H. Edwards <edwards@cs.vt.edu>