debugging!!!

Im trying to debug this program but when i hit debug and type in a value it closes out after i put a number in how do check what the results are if it closes the window?
Topic archived. No new replies allowed.