Code::Blocks Forums

User forums => Help => Topic started by: seahawkibiza on March 27, 2023, 04:32:59 pm

Title: C::B could not save settings Debugger looks strange and dont work
Post by: seahawkibiza on March 27, 2023, 04:32:59 pm
Hello,
I have a problem with C::B.
I installed the 20.3, but there the debugger dont work.
(See picture). Also I cant remove breakpoints.

But on 17.12, the last version I have, I can not save the config.
Title: Re: C::B could not save settings Debugger looks strange and dont work
Post by: Miguel Gimenez on March 27, 2023, 05:48:57 pm
That is a problem with the GDB version you are using, it colorizes the output using ANSI escape sequences unexpected by C::B.

It is fixed in trunk, if you want to fix 20.03 see this forum thread (https://forums.codeblocks.org/index.php/topic,25260.0.html)

EDIT: About saving config, recent Windows (W7+) do not allow writing under Program Files. I do not know why 17.12 tries to write there, but it will not work unless you execute C::B as administrator.
Title: Re: C::B could not save settings Debugger looks strange and dont work
Post by: seahawkibiza on March 27, 2023, 06:23:11 pm
Perfect, the fix to disable the ESC-sequences works fine.
Now can I set/delete the breakpoints and als the watches are displayed nice.

I also dont unterstand why C::B trys to write there. I added the rights, so that C::B can write there and I added also the directory tree, but nothing.

I deleted again all from C::B and searched also the registry and deleted all. Also a complete search on the hard drive and deleted all with relation to C::B by hand.

After a new istallation it works.

Many thanks for the help.

@Miguel and thanks for PM (the help with the postings)
Title: Re: C::B could not save settings Debugger looks strange and dont work
Post by: seahawkibiza on May 03, 2023, 02:37:54 pm
Still I have problems with the debugger.
If I set a breakpoint before I start the debugger then the breakpoint is active and will be entered. But if I set a breakpoint on runtime (after I startet the debugger, or when the debugger ist paused), then the breakpoint never was reached.

Its very difficult to debug a program if I cant set breakpoints on runtime.

How can I fix this error?
Title: Re: C::B could not save settings Debugger looks strange and dont work
Post by: Miguel Gimenez on May 03, 2023, 02:43:28 pm
You must pause execution before setting a new breakpoint.
Title: Re: C::B could not save settings Debugger looks strange and dont work
Post by: seahawkibiza on May 04, 2023, 12:07:09 pm
@Miguel This I know  ::)
I work with C::B hace 10 years.

No - I cant set a new breakpoint ones the debugger is invoked. I must close the programm. Set the breakpoint and start again.
In the version 16.xx works fine. We use TDM-GCC.
In the actual version dont works...