How to watch a variable showing its content as binary?
已回答
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.
请先登录再写评论。
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! :-)