
Similarly to a regular debug session, you can use the Frames tab and the Variables pane, as well as Memory and Disassembly view.

CLION REMOTE CODE
When you start a core dump debug session, CLion opens the corresponding source code and the Debug tool window automatically. If you created a Core Dump Debug configuration manually, select it in the switcher and press ( Shift+F9). If you call Open Core Dump when there are existing configurations in the project, it will open the list of them with the option to create a new one: Use this pane to set path mappings if the binary was built on another machine with different file/directory names or paths.įor the Open Core Dump action, CLion creates the corresponding configuration and launches it automatically. Specify the sysroot path if you are debugging a core dump from the binary build on another system with libraries in a non-default location. As a result, stepping and other debugging actions do not work correctly.įor GDB, it's required that you specify a non-stripped binary or a separate symbol file manually. so file, which is not a valid memory address. so as a symbol file, the debugger resolves the source location to two places: one to the actual address in memory, and the other to a file address within the. If you are debugging a shared object library, avoid specifying the. Note that symbols from the linked libraries built without debug info will be available only if related debug symbols are located in default search directories. This can be a program's binary build with debug information or a separate symbol file. Symbol file is required for CLion to identify the program symbols correctly and navigate you to the proper source code locations. Symbol file (optional for LLDB, required for GDB) See Collecting User-Mode Dumps in the official documentation. On Windows, core dumps are stored in the %LOCALAPPDATA%\CrashDumps directory. Make sure the file has read access permission. Provide the path to the core dump file or select it using the file chooser. The option to select GDB as the debugger is for the case of opening a Linux/macOS core dump file on Windows.
CLION REMOTE WINDOWS
Windows minidumps can't be debugged with GDB. Select the debugger to be used: bundled LLDB, bundled GDB, toolchain's GDB, or a custom external GDB.ĭefault debuggers are the bundled LLDB if the default toolchain is configured with LLDB, and the bundled GDB in all other cases. Go to Run | Edit Configurations, click, and select Core Dump Debug from the list of templates. Otherwise, select New Core Dump from the popup menu.Ĭreate a Core Dump Debug configuration manually. If there are no Core Dump Debug configurations in the project, the Open Core Dump dialog will be shown right away. Select Run | Open Core Dump from the main menu or call this action from Help | Find Action ( Control+Shift+A). Memory view, disassembly view, and debugger console can be used as well. Since the only available data is a memory snapshot for the time of a crash, stepping through the program is not possible, but you can investigate the corresponding source code, frames, and variables. These files are copies of process memory captured by the system at the point the program crashed or otherwise terminated abnormally.

CLion supports postmortem debug with core dump (macOS, Linux) and minidump (Windows) files.
