NO

Author Topic: Debugging through include files  (Read 2201 times)

tuxillo

  • Guest
Debugging through include files
« on: May 11, 2009, 01:53:52 PM »
Hi

I'm trying to debug a program that includes several custom header files. The thing is that when I set breakpoints inside the include files, the execution flow is not stopped there, only the the main C file.

I guess I'm missing something here.

Regards,
Antonio

JohnF

  • Guest
Re: Debugging through include files
« Reply #1 on: May 11, 2009, 02:32:41 PM »
Hi

I'm trying to debug a program that includes several custom header files. The thing is that when I set breakpoints inside the include files, the execution flow is not stopped there, only the the main C file.

I guess I'm missing something here.

Regards,
Antonio

Yes.

Header files should be solely for defines, prototypes etc. Any functions should be in a C file. The debugger will not help you when headers contain code.

John