Replies: 3 comments 7 replies
-
I have literally the same issue, except that the assembly code is shown when trying to step past the final return statement in This problem does not happen with |
Beta Was this translation helpful? Give feedback.
-
I had a similar issue. I narrowed it down to being a problem with my lldb workflow, as this happened when I tried using lldb without nvim-dap. I suggest first trying to make if the issue lies with lldb or the debug adapter by just running it with lldb. {
"version": "0.2.0",
"configurations": [
{
"type": "cppdbg",
"request": "launch",
"name": "lldb attach to running remote process",
"program": "${workspaceFolder}/a.out",
"cwd": "${workspaceFolder}",
"targetArchitecture": "x86_64",
"MIMode": "lldb",
"customLaunchSetupCommands": [
{"text": "settings append target.source-map /root/test ${workspaceFolder}", "description": "source paths"},
{"text": "platform select remote-linux", "description": "select platform"},
{"text": "platform connect connect://my-remote-server:1337", "description": "connect to remote"},
{"text": "platform process attach --pid 12466", "description": "attach to process"}
],
"launchCompleteCommand": "None"
}
]
} As you can see this configuration is for remote debugging with lldb server so most of the stuff can be ignored, the important point here is calling |
Beta Was this translation helpful? Give feedback.
-
I'm trying to use nvim-dap to debug C code using lldb-vscode (I was using gdb with nvim termdebug but yes, I'm trying something new) and whatever I do, dap shows the instructions in assembly instead of my source code
my nvim-dap config: (default config)
How can I solve this? I want nvim-dap to stop showing me instructions in assembly so I can debug my C code and get to normally use nvim-dap
Beta Was this translation helpful? Give feedback.
All reactions