C programming on the beagleboard black

I am using cloud9 on the beagleboard. I have written a hello world program and got it to work.I have a couple of questions.

  1. I want to use the debugger, gdb. I can compile my code from bash using
    gcc -ggdb3 hello.c -o hello
    But how do I add the -ggdb3 so that when I build cloud9 does it automatically?
  2. I want to pass a cmd line arg to my c program. How do I do this?
    I would appreciate someone giving instructions rather than just saying to do such and such, as I dont have a good understanding of the IDE yet.