CLion - Debugger only showing disaassmbled output

已回答

I'm using CLion with remote builds. Developing on OS X and deploying / building on Debian Jessie.

I'm using:

cmake 3.13

gcc 4.9.2

gdb 8.2 (can also reproduce the below w/ 7.7.1)

I hit a bunch of errors with GDB at initialization time regarding pretty printers. There were some modules gdb was attempting to load (per CLions's intructions) at the path `/Users/andrew/Library/Application\ Support/JetBrains/Toolbox/apps/CLion/ch-0/183.4588.63/CLion.app/Contents/bin/gdb/` on the remote host. This path (of course) doesn't exist on the remote host - I manually copied these over and I no longer get any errors at gdb start up.

Now: CLion, when stopping at a break-point, only shows me disassembled output and not my source files. I can type `l` in the gdb console within CLion  and I see my source listing correctly. I no longer see any errors in debug log (I have com.jetbrains.cidr.remote:trace set)

Has anybody run into this?

1

Hello! Probably the issue is related to your docker-specific setup. Could you please create a default "C++ executable" project in CLion (on the client machine) and try to debug it using a remote host toolchain? Does it work?

0

I'm able to see this on a non-docker host as well.

I should say that in both cases I've done the following:

1. My deployment is set to use SFTP

2. My Local Path and Deployment Path are identical

3. Under Deployment -> Options -> Exclude items by name I'm excluding '*'

4. I'm syncing my sources to the remote machine via a shared filesystem mount.

I'd expect that the debugger be able to find my sources in this case as

a) CLion knows where they are

b) GDB knows where they are

 

 

0

Please go to Help | Debug Log Settings, add #com.jetbrains.cidr.remote and #com.jetbrains.cidr.execution.debugger there. After that, reproduce an issue, collect logs from Help | Show Log in <File Manager> and send them to clion-support at jetbrains.com. Do not forget to disable debug logging after that. Note that logs might contain private user's information (like file paths and names). 

0

请先登录再写评论。