Debugging has no relation with static or global if you are comfortable with gdb. Having said that static has a file scope so sometimes same variable can exist in multiple files and can create some confusion with large project debugging.
But for programming practice point of view global should be avoided. Static is fine (loosely)