Sometimes variables in the Watches window are shown like this:
[36mi[m and sometimes as expected: i
And also the debugger log has additional characters before the address:Setting breakpoints
Breakpoint 2 at [34m0x1400019f2[m: file [32mc:\dev\Test\GUIFrame.cpp[m, line 46.
I'm using GDB 10.2/Win11.
What is going wrong?
Thanks in advance
K.
Looks like GDB is generating ANSI escape sequences (https://duffney.io/usingansiescapesequencespowershell/),
Adding
set style enabled off
to GDB initialization commands (in Settings -> Debugger -> Default) should fix the issue.
EDIT: I have just created a ticket (https://sourceforge.net/p/codeblocks/tickets/1366/) for this.
Thanks. That works.
K.