Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugging with remote DAP server uses server-side binaries #97

Open
calebchalmers opened this issue May 28, 2024 · 1 comment
Open

Debugging with remote DAP server uses server-side binaries #97

calebchalmers opened this issue May 28, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@calebchalmers
Copy link

I'm trying to setup debugging with a remote probe (via SSH tunnel); I have a probe-rs DAP server running on my remote host, and a VS Code instance on my local machine. While adjusting the launch options, I realized that probe-rs tries to find the programBinary on the remote host, rather than in my local repository.

If I copy program.elf to the remote host, the debug session starts successfully. The same issue may apply to svdFile, although I am unable to test this currently.

It would be helpful if there was an option (or the default behaviour) to automatically upload and use the local program binary from VS Code.

Log:

probe-rs-debug: Starting debug session from: 127.0.0.1:37940
Invalid program binary file specified '/home/remote/program.elf'

Launch configuration:

{
  "type": "probe-rs-debug",
  "request": "launch",
  "name": "probe_rs",
  "server": "127.0.0.1:7184",
  "cwd": "${workspaceFolder}",
  "chip": "STM32F407IGHx",
  "coreConfigs": [
    {
      "coreIndex": 0,
      "programBinary": "program.elf",
    }
  ]
},
@noppej
Copy link
Contributor

noppej commented May 28, 2024

@calebchalmers A similar request has been opened on the repo that hosts the dap server behind this extension. I'm linking it here to keep the two connected :)

probe-rs/probe-rs#1559

@noppej noppej added the enhancement New feature or request label May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants