User forums > Using Code::Blocks
Variable names in Watches window
(1/1)
Krause:
Sometimes variables in the Watches window are shown like this:
--- Code: ---[36mi[m
--- End code ---
and sometimes as expected: i
And also the debugger log has additional characters before the address:
--- Code: ---Setting breakpoints
Breakpoint 2 at [34m0x1400019f2[m: file [32mc:\dev\Test\GUIFrame.cpp[m, line 46.
--- End code ---
I'm using GDB 10.2/Win11.
What is going wrong?
Thanks in advance
K.
Miguel Gimenez:
Looks like GDB is generating ANSI escape sequences,
Adding
--- Code: ---set style enabled off
--- End code ---
to GDB initialization commands (in Settings -> Debugger -> Default) should fix the issue.
EDIT: I have just created a ticket for this.
Krause:
Thanks. That works.
K.
Navigation
[0] Message Index
Go to full version