User forums > Using Code::Blocks

Variable names in Watches window

(1/1)

Krause:
Sometimes variables in the Watches window are shown like this:

--- Code: ---i
--- End code ---
and sometimes as expected: i
And also the debugger log has additional characters before the address:
--- Code: ---Setting breakpoints
Breakpoint 2 at 0x1400019f2: file c:\dev\Test\GUIFrame.cpp, 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