During debugging in codelite I need to see numbers always as hexadecimal.
I need to keep sets of variables created in the watch panel.
I need to see variables of type string or wstring as the contained string without need to expand the variable.
And I need also not to have two separate views for locals and watch but only one !!
HOW DO I DO IT
My OS is ubuntu uname gives:
3.11.0-15-generic #23-Ubuntu SMP Mon Dec 9 18:17:04 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Debuging see numbers always in HEX and string as text
-
- CodeLite Enthusiast
- Posts: 18
- Joined: Sat Jan 25, 2014 9:16 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Debuging see numbers always in HEX and string as text
Last edited by gkourtis on Sat Jan 25, 2014 10:43 pm, edited 2 times in total.
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Debuging see numbers always in HEX and string as text
You forgot to mention your OS/codelite version etcgkourtis wrote:During debugging in codelite I need to see numbers always as hexadecimal.
I need to keep sets of variables created in the watch panel.
I need to see variables of type string or wstring as the contained string without need to expand the variable.
HOW DO I DO IT
To be able to view the string properly (without expanding it) you need to enable python pretty printing:
1. Make sure your gdb supports python pretty printing
2. From codelite's menu bar: Settings->GDB->Enable pretty printing
Note that by default codelite uses the CTRL (CMD on OSX) to enable tooltips when hovering a variable/expression
To view numbers in hex (base 16) format:
project settings->common settings->debugger->startup commands
and add this line:
Code: Select all
set output-radix 16
settings->GDB settings->startup commands
and put the same line as above
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Enthusiast
- Posts: 18
- Joined: Sat Jan 25, 2014 9:16 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Debuging see numbers always in HEX and string as text
Hex works ok
I enabled the flag but python pretty printing does not work.
What do I have to do in my platform ?
I enabled the flag but python pretty printing does not work.
What do I have to do in my platform ?
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Debuging see numbers always in HEX and string as text
Make sure you have read the HOW TO POST thread
-
- CodeLite Enthusiast
- Posts: 18
- Joined: Sat Jan 25, 2014 9:16 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Debuging see numbers always in HEX and string as text
OS: 3.11.0-15-generic #23-Ubuntu SMP Mon Dec 9 18:17:04 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux ( I already said it before )
CodeLite 5.4 (downloaded as update )
Language used C++ ( compiler g++ and clang ).
CodeLite 5.4 (downloaded as update )
Language used C++ ( compiler g++ and clang ).
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Debuging see numbers always in HEX and string as text
From the HOW TO POST:
Eran1) If it is a 'Debugger' related bug, make sure to also post:
The full debugger log - enable the 'full debugger logging' option, reproduce your problem and paste the output from the 'Debugger' view ("Output" tab) window to your post (from settings -> debugger settings -> GNU gdb debugger -> misc -> enable full debugger logging)
Your GDB version
Make sure you have read the HOW TO POST thread