koush / vscode-quickjs-debug

QuickJS Debug Adapter for VS Code
MIT License
148 stars 27 forks source link

SourceMap is not work? #4

Open wanhongbo opened 2 years ago

wanhongbo commented 2 years ago

I am using the qjs debug extension to debug js file on mac, and set breakpoints in index.ts file ,but can not stoped the program

wanhongbo commented 2 years ago
    {
        "name": "Launch QuickJS",
        "type": "quickjs",
        "request": "launch",
        "program": "${workspaceFolder}/dist/main.js",
        "runtimeExecutable": "/Users/wanhongbo/workspace/qjs-debugger/qjs-debug",
        "sourceMaps": {
            "${workspaceFolder}/dist/main.js.map": "${workspaceFolder}/src",
        }

    },
runhwguo commented 1 year ago

@wanhongbo Have it resolved?

eloparco commented 11 months ago

@runhwguo @wanhongbo Did you manage to solve? Facing the same problem, it would be useful to know how to generate the source map file to be compatible with this vscode extension. I fixed some problems using devtoolModuleFilenameTemplate: '[resource-path]' in my webpack.config.js config, but I'm still not able to make it work.