The built-in GDB in CLion shows a boost::optional as a char array. How can I teach it to show the contents as the real type?
Asked
Active
Viewed 260 times
1
-
3As with any GDB you need a "printer" to show complex structures, like this one: https://github.com/ruediger/Boost-Pretty-Printer – oakad Oct 29 '21 at 02:36
-
@oakad That works, thanks, you can make this an answer. – Felix Dombek Nov 04 '21 at 18:28
-
I haven't made an answer in years. :-D – oakad Nov 05 '21 at 02:58
-
@oakad why not? This question is answered – Felix Dombek Nov 05 '21 at 04:01