i have a main program with some include files, and i want to debug this files as well as the main program and use breakpoinds. Anyone knows how to do this??? Thanks
At the top of all the files OTHER than main that use these variables, you must put an "extern" declaration No. As I keep pointing out, pretty much every occurence of the word 'extern' in a .c file is a design error. You should have this 'extern' in a header file instead, and #include that in exactly those source files that refer to it, including the one that holds the definition of the variable in question.
Hans, While I understand your philosophy, keep in mind that Javier started off this thread by asking how he could STEP THROUGH CODE included in a header file. I'm just going for simplicity here at the moment. He'll learn the theology of things the hard way at some later date, no doubt.