Author Topic: Variable names in Watches window  (Read 2628 times)

Offline Krause

  • Single posting newcomer
  • *
  • Posts: 2
Variable names in Watches window
« on: January 25, 2023, 03:35:14 pm »
Sometimes variables in the Watches window are shown like this:
Code
i
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.
I'm using GDB 10.2/Win11.

What is going wrong?

Thanks in advance
K.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1632
Re: Variable names in Watches window
« Reply #1 on: January 25, 2023, 03:46:13 pm »
Looks like GDB is generating ANSI escape sequences,

Adding
Code
set style enabled off
to GDB initialization commands (in Settings -> Debugger -> Default) should fix the issue.

EDIT: I have just created a ticket for this.
« Last Edit: January 25, 2023, 04:26:39 pm by Miguel Gimenez »

Offline Krause

  • Single posting newcomer
  • *
  • Posts: 2
Re: Variable names in Watches window
« Reply #2 on: January 26, 2023, 07:51:55 am »
Thanks. That works.

K.