How do I "Attach to process" with a different debugger?

Answered

When I choose "Attach to process", the only option appears to be "Attach with LLDB". How do I attach using GDB? I have a toolchain setup with GDB as the debugger, but I need to use it with the "Attach to process" feature.

 

Build #CL-231.9011.31, built on May 15, 2023

Ubuntu 22.04

0
4 comments

Hello!

Sorry for the delay in response.

>When I choose "Attach to process", the only option appears to be "Attach with LLDB"

Could you please provide a screenshot illustrating this?

Please also provide screenshots of all your toolchains from `File | Settings | Build, Execution, Deployment | Toolchains`.

0

> Could you please provide a screenshot illustrating this?

> Please also provide screenshots of all your toolchains from `File | Settings | Build, Execution, Deployment | Toolchains`.

gcc-12 has GDB. The active cmake profile uses this toolchain

0

If several debuggers are possible, there should be the "arrow" button next to the "Attach with LLDB" button:

Do you happen to have the "ide.allow.merge.buttons" registry option disabled (`Help | Find Action`, type "Registry...")? If yes, please enable it and check if the issue persists.

If the issue happens even with enabled "ide.allow.merge.buttons", 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 jetbrains.com. Do not forget to disable debug logging after that. Note that logs might contain private user information (like file paths and names). 

0

Nope, it's enabled.

I'll send the logs

0

Please sign in to leave a comment.