For the cases when your project includes third party modules with no source code (libraries, for instance),
or a binary you have attached to (using "attach to local process")
has no debug info,
CLion provides the disassembly view for the program being investigated. The disassembly view enables and is shown automatically
whenever you step into a function with no source code. Besides, you can click the desired
frame in the Debug tool window and see the disassembly code in the editor.
Use Step Over and Step Into to investigate the code that you are debugging.
The assembly code is highlighted properly when shown in the editor. However, note that currently the disassembly view works with the following limitations:
- The GAS x86_64 assembly language (AT&T dialect) only is supported.
- Disassembly view is supported for GDB only.
- Setting breakpoints in the disassembly code is not yet supported.
- The run to cursor and evaluate expression actions are not supported.