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

Allow to define directory mapping for remote debugging #153

@Nowaker

Description

@Nowaker
  • 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
    }
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions