User forums > Help

How to make the program stop at the breakpoints set in the header file?

(1/1)

joshua8541:
I defined a function func(int x, int y) in a header file(.h).
In the main function (.c file) , the breakpoints work well. I set one where the function "func" is called and the program stopped there, then I stepped into and it does go into "func". However, I can only hit "next line". if I use "continue" or "run to cursor", the program will go through "func" and back to main function. So I will never inspect the variables in the function "func" in the header file.

Can someone tell me what's going on?
Thanks

ollydbg:
You didn't give the environment.
 
This kind of question has asked several times in this forum. You can search on this forum.

AFAIK, at lest, TDM-MinGW didn't have this problem.

Navigation

[0] Message Index

Go to full version