How to debug a C program?

Hi,
I need to fix a C program someone wrote 10 years ago and I have very limited knowledge on C.
Does someone know how to debug a C program? I am so used to VB debuger.
The C program is on Unix SunOs

Thanks for your help!

u can use a gdb to see whats happening in the program and how the variables are assuming the values.

other wise u have to go line by line and interpret it

i dont htink there is any other way to debug the code