vscode-firefox-debug icon indicating copy to clipboard operation
vscode-firefox-debug copied to clipboard

Obfuscated variables are not made readable using the available inline source map

Open olfek opened this issue 9 months ago • 2 comments

Obfuscated variables are not made readable using the available inline source map.

With pathMappings configured, breakpoints in VSCode work, but the variables values aren't visible in the editor on mouse hover, and the "variables" pane in the "run and debug" pane only shows the obfuscated variables without any useful names.

olfek avatar Mar 03 '25 23:03 olfek

maybe I'm doing something wrong?

olfek avatar Mar 03 '25 23:03 olfek

{
    "name": "Launch WebExtension",
    "type": "firefox",
    "request": "launch",
    "reAttach": true,
    "keepProfileChanges": true,
    "profile": "my-project",
    "addonPath": "${workspaceFolder}/dist/my-project/browser",
    "reloadOnChange": {
        "watch": "${workspaceFolder}/dist/my-project/browser/**/*"
    },
    "pathMappings": [
        {
            "url": "webpack:///",
            "path": "${workspaceFolder}/src"
        },
        {
            "url": "moz-extension://*/src",
            "path": "${workspaceFolder}/src"
        }
    ]
}

olfek avatar Mar 03 '25 23:03 olfek