Now I write a c program in linux using vi and gcc. But if there is something wrong in my program, i don't know how to trace.

For Turbo C in windows, i just need to press F7 and add variables to watch by using Ctrl+F7. For Linux, anyone could tell me?