Debug->Next always step into function?

CodeLite installation/troubleshooting forum
count0
CodeLite Enthusiast
Posts: 16
Joined: Fri Jul 04, 2008 10:46 am
Contact:

Debug->Next always step into function?

Post 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?
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Debug->Next always step into function?

Post 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
Make sure you have read the HOW TO POST thread
count0
CodeLite Enthusiast
Posts: 16
Joined: Fri Jul 04, 2008 10:46 am
Contact:

Re: Debug->Next always step into function?

Post 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.
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Debug->Next always step into function?

Post by eranif »

Which version of debugger are u using?

Eran
Make sure you have read the HOW TO POST thread
count0
CodeLite Enthusiast
Posts: 16
Joined: Fri Jul 04, 2008 10:46 am
Contact:

Re: Debug->Next always step into function?

Post 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?
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Debug->Next always step into function?

Post 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
Make sure you have read the HOW TO POST thread
count0
CodeLite Enthusiast
Posts: 16
Joined: Fri Jul 04, 2008 10:46 am
Contact:

Re: Debug->Next always step into function?

Post by count0 »

Wow, change -g to -gstabs, problem solved. :D

Thanks.
Post Reply