First make sure that your code compiles and runs at all. Only then you can start debugging.
But even before that, make up your mind in which language you want to write your code. From your post I get the impression that you have a mix of .c and .wdl. That won't work. You must decide which language to use - for beginners, I suggest lite-C. Start with the lite-C tutorial to make yourself familiar with the basics of programming and debugging.
If you did all this and then still have an FPS problems with debugging a .c program, please post a bug report which details about your problem, and include the code or a link to the project. Then we can look into the issue.
- Moved to the starting forum.