You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I write here as discussion because, to be honest, I don't know whether it's a codelldb or vscode bug, or simply I'm wronging something.
I'm trying to debug rust program as root in Vscode but doesn't work.
I'm using the following configuration:
launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Remote launch",
"type": "lldb",
"request": "launch",
"program": "${workspaceFolder}/target/debug/prova-debug", // Local path.
"initCommands": [
"platform select remote-linux", // Execute `platform list` for a list of available remote platform plugins.
"platform connect connect://localhost:17777"
],
}
}
Before to launch it, I run on the external terminal :
lldb-server platform --listen "*:17777" --server
Well, when I launch it, I can see the following:
Console is in 'commands' mode, prefix expressions with '?'.
Executing script: initCommands
Platform: remote-linux
Connected: no
Platform: remote-linux
Triple: x86_64-unknown-linux-gnu
OS Version: 5.15.94 (5.15.94)
Hostname: SlackDom.home
Connected: yes
WorkingDir: /home/domenico/Progetti/Rust/prova-debug
Kernel: #1 SMP PREEMPT Fri Feb 17 18:59:35 CST 2023
Launching: /home/domenico/Progetti/Rust/prova-debug/target/debug/prova-debug
As you can see, it's connected and that can be confirmed on the terminal as well, but
in vscode, I get the "No such file or directory" error which reports me to launch.json.
The path is correct.
How could i resolve it?
Thanks in advance
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I write here as discussion because, to be honest, I don't know whether it's a codelldb or vscode bug, or simply I'm wronging something.
I'm trying to debug rust program as root in Vscode but doesn't work.
I'm using the following configuration:
launch.json
Before to launch it, I run on the external terminal :
Well, when I launch it, I can see the following:
As you can see, it's connected and that can be confirmed on the terminal as well, but
in vscode, I get the "No such file or directory" error which reports me to launch.json.
The path is correct.
How could i resolve it?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions