Skip to content

Building Debugging Extension

Paul Raingeard edited this page Aug 20, 2022 · 1 revision

Debug the extension with UAE-DAP project sources

git clone https://github.com/grahambates/uae-dap
  • set the dependency to the local project in the package.json file
	"dependencies": {
		"uae-dap": "file:../uae-dap",
    }
  • Add the source mapper plugin for webpack
npm i -D source-map-loader
  • install node dependencies
npm install
  • add the configuration to webpack.config.js
    module: {
        rules: [
            ...
            {
                test: /\.js$/,
                enforce: "pre",
                use: ["source-map-loader"],
            },
        ]
    },