Remote GDB server, header files breakpoints not working



I'm using the remote GDB server configuration to debug some C++ code built using CMake.

When I debug on my local machine (always using CLion) everything works perfectly, but when I use the remote GDB server, it is still able to connect and stop at breakpoints, but not in header files. In particular some header files will signal an invalid brekpoint (saying that no executable code is associated with that file), others will say it is valid, but still never stop there (even though the code in that lines is being executed).

Does anybody know what could be causing this? Maybe I'm missing something.

Thanks in advance.



Please enable debugger logging as described here, reproduce the issue and send the resulting idea.log file (Help | Show Log in ...) to clion-support at Do not forget to disable debug logging after that. Note that logs might contain private user's information (like file paths and names). 


Hi Mattia,
Did you solved this issue ? I'm running in the same and I can't manage to sort it out.