Interfacing C with Arduino

You can't have the serial monitor and Processing using the same serial port at the same time. Close the serial monitor, and put debugging code into the Processing application.