How to add a hexadecimal watch in CLion?
<p>I need to add a watch in hexadecimal format in CLion.</p>

<p><code>ltoa(variable, 16)</code> doesn't work, at least, on my system.</p>

<p>In Java/Python, I can have a workaround: write a custom <code>toString()</code>/<code>__str__</code> for my class and have it displayed the way I need. <code>gdb</code> has <a href="http://ftp.gnu.org/old-gnu/Manuals/gdb/html_node/gdb_54.html" rel="noreferrer"><code>p/x</code></a>. How do I do it in CLion?</p>

<p><strong>Edit</strong>: <code>ltoa(variable, 16)</code> works if I define <code>ltoa</code> in my code, as it's not always present in standard library.</p>