Page 1 of 1

Debug->Next always step into function?

Posted: Sun Oct 26, 2008 3:40 pm
by count0
While in debugging code, if I press F10 (Debug->Next), Codelite always steps into the function under the cursor, this behavior is just like Debug->Step Into.
I am using the latest 1.0.2304.

Does any have the same problem, or just me?

Re: Debug->Next always step into function?

Posted: Sun Oct 26, 2008 4:44 pm
by eranif
count0 wrote:Does any have the same problem, or just me?
Just you :)

Which OS?
Which application? simple C++, wxWidgets etc.
Check keyboard bindings (settings -> keyboard shortcuts...)

Eran

Re: Debug->Next always step into function?

Posted: Sun Oct 26, 2008 5:22 pm
by count0
Oh, I am using Windows XP with SP3. And I just check the shortcuts setting, it looks OK.

It is same with big application like mplayer or just a simple "Hello Wold" plus a simple function.

Re: Debug->Next always step into function?

Posted: Sun Oct 26, 2008 6:48 pm
by eranif
Which version of debugger are u using?

Eran

Re: Debug->Next always step into function?

Posted: Sun Oct 26, 2008 7:19 pm
by count0
I am using the MinGW Gcc v4.2.1 and its debugger from wxPack:
http://wxpack.sourceforge.net/Main/Downloads

And I just tried the mingw3.4.5.exe you put on sourceforge, it works.
I switch to this dbg but use the compiler from above Gcc v4.2.1, the problem still exists.

Maybe it is related to compiler?

Re: Debug->Next always step into function?

Posted: Sun Oct 26, 2008 7:54 pm
by eranif
FYI: this is not a CodeLite issue, but gcc/gdb issue.

Now: I read somewhere that debugging with g++ 4.1, it is advised to compile with -gstab instead of -g, try adding this to your code in project settings -> compiler tab, 'options' entry

Perform a full rebuild and try it again.
Eran

Re: Debug->Next always step into function?

Posted: Sun Oct 26, 2008 8:11 pm
by count0
Wow, change -g to -gstabs, problem solved. :D

Thanks.