Skip to content
This repository has been archived by the owner on Jan 13, 2021. It is now read-only.

Allow to define directory mapping for remote debugging #153

Open
Nowaker opened this issue Jun 20, 2020 · 0 comments
Open

Allow to define directory mapping for remote debugging #153

Nowaker opened this issue Jun 20, 2020 · 0 comments

Comments

@Nowaker
Copy link

Nowaker commented Jun 20, 2020

  • File path in my development environment: /home/nowaker/projekty/dreamhost/ndn/bin/ndn-dev
  • File path in the Docker container: /home/ndn/bin/ndn-dev

This is what happens when I hit the first breakpoint:

image

Config:

{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "perl",
      "request": "launch",
      "name": "Perl-Debug",
      "console": "remote",
      "port": 9000,
      "root": "${workspaceFolder}",
      "program": "${workspaceFolder}/${relativeFile}",
      "stopOnEntry": true,
      "reloadModules": false
    }
  ]
}

We need a way to define directory mappings, for example:

{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "perl",
      "request": "launch",
      "name": "Perl-Debug",
      "console": "remote",
      "port": 9000,
      "root": "${workspaceFolder}",
      "dirMapping": [
        {"/home/ndn": "${workspaceFolder}"},
        {"/some/remote/path": "/some/local/path"}
      ],
      "program": "${workspaceFolder}/${relativeFile}",
      "stopOnEntry": true,
      "reloadModules": false
    }
  ]
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant