From 887cbaab0a8903ad658705e34b46b1a2b5a402dd Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Tue, 7 May 2019 23:03:13 +0200 Subject: [PATCH] attempt at getting debugging via vscode working --- .vscode/launch.json | 11 +++++++---- webpack.config.js | 1 + 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 3fd55fb..42e9f96 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -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" + ] } } \ No newline at end of file diff --git a/webpack.config.js b/webpack.config.js index 67c6b5f..f219a0e 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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',