Debugging programs always exits before printing anything and finishes with exit code 1

Completed

I am running Manjaro Linux using a free evaluation of CLion installed from Flatpak (Flathub).  When I run a print program, it executes successfully, however when I attempt to debug(even without any breakpoints) nothing is printed and exit code 1 is always returned.  If I change my debugger from the bundled gdb to the bundled lldb, the debugger shows "process launch failed: 'A' packet returned an error: 8".

0
2 comments
Avatar
Permanently deleted user

Issue solved.  For some reason uninstalling the flatpak version and installing CLion from snap fixed my issue.

0

This is a permission issue due to Flatpak's sandbox. It can however be fixed by installing the app "Flatseal" which allows tweaking of permissions, of flatpak apps, navigating to CLion and enabling the "Development syscalls" option (pictured). Afterwards, debugging with either the bundled or custom binaries of both GDB and LLDB should work.

3

Please sign in to leave a comment.