How to watch a variable showing its content as binary?
Answered
Hi.
How to see a watched variable as binary content? It can be useful to see bitwise operations[1], for example, supposing the following code:
```
for (unsigned char i = 0; i < 8; i++)
LATB |= (unsigned char) (1 << i);
```
watching the LATB as binary, we would see the bit concatenation.
I've been looking for such option, but it seems CLion show only as hexadecimal.
Please sign in to leave a comment.
Hi!
Unfortunately, it hasn't been implemented in CLion yet. We have a related feature request in our tracker already: https://youtrack.jetbrains.com/issue/CPP-11047 (it mostly about hex format, but please add your comment about binary support too).
Awesome. I've voted there, thanks a lot Anna! :-)