Page 1 of 1

Debugging, watch window, array elements incorrectly sorted

Posted: Fri Nov 30, 2018 12:34 pm
by squantor
Hello All,

I am debugging a C program that uses a few arrays. I am running into a visual problem that I cant seem to fix:
Screenshot_2018-11-30_09-16-01.png
The array index elements are in an incorrect order. This makes the array quite hard to read and I have to jump around. It seems that sorting on the index is incorrect.
I am using the following:
Codelite 12.0.10, the GTK3 variant (could not see this in the information window) and running in ubuntu 18.04.1

What I have tried: Refreshing and sorting, sorting while "prompt" is selected. All have no effect.

What am I doing wrong? Or is this a bug?

Re: Debugging, watch window, array elements incorrectly sorted

Posted: Sat Dec 01, 2018 2:38 am
by eranif
thanks, its a bug in CodeLite (it sorts the elements in asc order). Can u please open this on GitHub?

Re: Debugging, watch window, array elements incorrectly sorted

Posted: Sat Dec 01, 2018 12:29 pm
by eranif
This is now fixed in CodeLite git master

Re: Debugging, watch window, array elements incorrectly sorted

Posted: Fri Dec 07, 2018 12:03 pm
by squantor
Hello, thank you for the quick fix!

Next time I will submit on github and thank you for developing this excellent editor!

Re: Debugging, watch window, array elements incorrectly sorted

Posted: Mon Dec 17, 2018 12:37 pm
by Polychemist
Hello!
I have started with CodeLite with Windows 7, 12.0.10, MinGW (TDM-GCC-64) and I can not start the debugger, I add a breakpoint, push F5, choose "build and debug", program builds, starts to work and terminates without stop at the breakpoint. An example is attached.

Thanks!
Hello.zip

Re: Debugging, watch window, array elements incorrectly sorted

Posted: Mon Dec 17, 2018 2:00 pm
by Polychemist
Sorry, the problem solved:
Executable path in (Settings > Debugger > GDB/CDB Debugger:Default) must be C:\MinGW\bin\gdb.exe.