Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

pathMapping does not work when launch configuration in user settings.json and project in devcontainer

Open
#262 3 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript, vscode

Research direction

Reproduce the issue with a launch configuration in user settings.json and the project in a devcontainer, then compare it with the working launch.json case. Trace how pathMappings are loaded and resolved, and verify that the generic mapping works without the generated vscode-remote path.

Written by the indexing model from the issue text.

Description

This finds pathMapping when defined in launch.json. However it does not work, when I place it under the launch key in my user settings.json:

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Firefox Debugger",
            "type": "firefox",
            "request": "launch",
            "reAttach": true,
            "profile": "dev",
            "keepProfileChanges": true,
            "url": "http://localhost:8080/",
            "skipFiles": [
                "${workspaceFolder}/app/node_modules/**"
            ],
            "pathMappings": [
                {
                    "url": "webpack:///src",
                    "path": "${workspaceFolder}/app/src"
                }
            ]
        }
    ]
}

The extension offers to do a pathMapping like the following. This actually works, but it is not generic.

                {
                    "url": "webpack:///src/components/Component.vue",
                    "path": "vscode-remote://dev-container%2B2f686f6d652f6272616e64732f7265706f732f626574612d617070/project/app/src/components/Component.vue"
                },
Expected

The launch configuration should also work in settings.json.

Dominant language
TypeScript
Stars
447
Forks
76
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from firefox-devtools/vscode-firefox-debug

All issues in firefox-devtools/vscode-firefox-debug

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.