Debugger Behavior Issue: Grayed-out Breakpoints and Manual Reapplication

已回答

Could you please provide guidance on what we might be missing, as the debugger is exhibiting unusual behavior? Whenever we initiate it, the breakpoints appear greyed out, and as a result, the execution does not pause at the breakpoints. To make the breakpoints functional, we have to remove and reapply them.

 

Here is an overview of our debug configuration:

 

Below are the Toolchains and Cmake settings provided for your reference:

 

 

Kindly inform us if there is anything we might have overlooked or if our approach differs from the expected behavior.

 

Additionally, could the bundled GDB be the cause of this issue? It seems that the same project functions properly in Eclipse.


We eagerly anticipate your assistance and appreciate your support in advance.

0

Hello!

Sorry for the delay in response.

We have an article which gives general recommendations for the case when you need to build a CMake application on a remote system and then debug it on another remote system - https://www.jetbrains.com/help/clion/complicated-remote-scenarios.html. Please follow it. For example, you need to use the GDB from the build machine (the Docker container in your case). And in the "Executable" field you need to select the downloaded (local) binary (https://www.jetbrains.com/help/clion/complicated-remote-scenarios.html#remote-config).

Please note that on our side we tested this scenario only with a "Remote GDB Server" configuration. 

0

请先登录再写评论。