Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: lxr5109 on March 23, 2018, 09:20:27 am

Title: debug slower and slower
Post by: lxr5109 on March 23, 2018, 09:20:27 am
I am using C::B 16.01 and gcc 4.4.3.

There are many variables in my program which use about 1MB stack. First time I trigger a breakpoint in the program, the watch table refreshed quickly. But next time, it will be a little slower. By time to time, it will be slower and slower. Some time it maybe take up to one minute to respond and refresh the watch table.

But if I restart C::B, it will be quick again. And then slower and slower... And CPU usage is higher and higher.

I'd like to know is the problem a bug of C::B or GCC? Do I have any mathod to solve it?

Thank you very much.
Title: Re: debug slower and slower
Post by: oBFusCATed on March 23, 2018, 09:22:26 am
Can you provide a minimal project which can be used to reproduce the problem?
Title: Re: debug slower and slower
Post by: lxr5109 on March 23, 2018, 09:42:53 am
OK, I will try to make a demo to reproduce this problem later.
Title: Re: debug slower and slower
Post by: oBFusCATed on March 23, 2018, 10:28:06 am
Just keep in mind that if you're debugging growing arrays/vectors this is the expected behaviour.
The communication between cb and gdb is not the fastest at the moment.
If you see a slow down with the same amount of data then this is a bug.

Also it will be good if you could try 17.12 or a newer night build.
Title: Re: debug slower and slower
Post by: rogeriodec on March 23, 2018, 07:00:53 pm
I do not know if it's the same case as mine, but I have a small project, it takes very little RAM. I work on it for several hours. But at the end of the day, sometimes when compiling the project (F9 or F8) it strangely gets several times slower to compile. In this case I am required to restart my Windows. Was it something like this?