tracing program: breakpoints
Posted: Sun Jul 13, 2008 1:43 pm
good day, eranif.
don't know what i am doing wrong but being debugging with CodeLite IDE i cannot break on specified marked as breakpoint lines. suppose, i have the following code sample:
main.cpp:
where MyClass is implemented in MyClass.h file:
i press F5 and CodeLite IDE doesn't stop on marked line in MyClass.h file. it just executes my program and properly finishes it.
keeping in mind this 'odd' behavior described above, i have to set "additional" breakpoint in main.cpp file just *before* c.invoke() line so i'll be breaked in it and after i debug my program step by step pressing F11/F10. this approach works well, but i wonder why i cannot break in specified line located in "MyClass.h" directly? thanks for information.
don't know what i am doing wrong but being debugging with CodeLite IDE i cannot break on specified marked as breakpoint lines. suppose, i have the following code sample:
main.cpp:
Code: Select all
#include "MyClass.h"
int main(){
//...
MyClass c;
c.invoke();
return 0;
}
Code: Select all
class MyClass{
public:
//...
void invoke(){ printf("hello\n");} <-- *i set breakpoint on this line*
};
keeping in mind this 'odd' behavior described above, i have to set "additional" breakpoint in main.cpp file just *before* c.invoke() line so i'll be breaked in it and after i debug my program step by step pressing F11/F10. this approach works well, but i wonder why i cannot break in specified line located in "MyClass.h" directly? thanks for information.