During a debug session, you can access the GDB/LLDB console directly from CLion.
In Debug tool window, open the tab marked as LLDB or GDB:
This tab shows the debugger's output/error stream and lets you run GDB/LLDB commands.
Quick switch to the debugger console (only available during a debug session).
In case the Debug tool window is hidden, this action opens it and focuses on the debugger console tab.
Control+Space or Tab
Invokes command completion provided by GDB or LLDB, respectfully.