attempt at getting debugging via vscode working

This commit is contained in:
Tamius Han 2019-05-07 23:03:13 +02:00
parent 86eeab323d
commit 887cbaab0a
2 changed files with 8 additions and 4 deletions

11
.vscode/launch.json vendored
View File

@ -7,14 +7,17 @@
{
"name": "Launch addon",
"type": "firefox",
"request": "attach",
"request": "launch",
"port":6000,
// "reAttach": true,
"reAttach": true,
"addonType": "webExtension",
"addonPath": "${workspaceFolder}"
"addonPath": "${workspaceFolder}/dist",
}
],
"firefox": {
"executable": "/usr/bin/firefox-developer-edition"
"executable": "/usr/bin/firefox-developer-edition",
"firefoxArgs": [
"--start-debugger-server"
]
}
}

View File

@ -9,6 +9,7 @@ const { version } = require('./package.json');
const config = {
mode: process.env.NODE_ENV,
devtool: "inline-source-map",
context: __dirname + '/src',
entry: {
'ext/uw': './ext/uw.js',