diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 40f797423..7b1b0248b 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -2,6 +2,7 @@ "recommendations": [ "waderyan.nodejs-extension-pack", "esbenp.prettier-vscode", - "donjayamanne.git-extension-pack" + "donjayamanne.git-extension-pack", + "msjsdiag.debugger-for-chrome" ] } diff --git a/.vscode/launch.json b/.vscode/launch.json index 1bf15401c..44a58c324 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,64 +1,62 @@ { - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "name": "Debug Local File", - "type": "Ruby", - "request": "launch", - "cwd": "${workspaceRoot}", - "program": "${workspaceRoot}/main.rb" - }, - { - "name": "Listen for rdebug-ide", - "type": "Ruby", - "request": "attach", - "cwd": "${workspaceRoot}", - "remoteHost": "127.0.0.1", - "remotePort": "1234", - "remoteWorkspaceRoot": "${workspaceRoot}" - }, - { - "name": "Rails server", - "type": "Ruby", - "request": "launch", - "cwd": "${workspaceRoot}", - "program": "${workspaceRoot}/bin/rails", - "args": [ - "server" - ] - }, - { - "name": "RSpec - all", - "type": "Ruby", - "request": "launch", - "cwd": "${workspaceRoot}", - "program": "${workspaceRoot}/bin/rspec", - "args": [ - "-I", - "${workspaceRoot}" - ] - }, - { - "name": "RSpec - active spec file only", - "type": "Ruby", - "request": "launch", - "cwd": "${workspaceRoot}", - "program": "${workspaceRoot}/bin/rspec", - "args": [ - "-I", - "${workspaceRoot}", - "${file}" - ] - }, - { - "name": "Cucumber", - "type": "Ruby", - "request": "launch", - "cwd": "${workspaceRoot}", - "program": "${workspaceRoot}/bin/cucumber" - } - ] -} \ No newline at end of file + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "chrome", + "request": "attach", + "name": "Attach to Chrome", + "port": 9222, + "webRoot": "${workspaceFolder}/app/javascript/packs" + }, + { + "name": "Debug Local File", + "type": "Ruby", + "request": "launch", + "cwd": "${workspaceRoot}", + "program": "${workspaceRoot}/main.rb" + }, + { + "name": "Listen for rdebug-ide", + "type": "Ruby", + "request": "attach", + "cwd": "${workspaceRoot}", + "remoteHost": "127.0.0.1", + "remotePort": "1234", + "remoteWorkspaceRoot": "${workspaceRoot}" + }, + { + "name": "Rails server", + "type": "Ruby", + "request": "launch", + "cwd": "${workspaceRoot}", + "program": "${workspaceRoot}/bin/rails", + "args": ["server"] + }, + { + "name": "RSpec - all", + "type": "Ruby", + "request": "launch", + "cwd": "${workspaceRoot}", + "program": "${workspaceRoot}/bin/rspec", + "args": ["-I", "${workspaceRoot}"] + }, + { + "name": "RSpec - active spec file only", + "type": "Ruby", + "request": "launch", + "cwd": "${workspaceRoot}", + "program": "${workspaceRoot}/bin/rspec", + "args": ["-I", "${workspaceRoot}", "${file}"] + }, + { + "name": "Cucumber", + "type": "Ruby", + "request": "launch", + "cwd": "${workspaceRoot}", + "program": "${workspaceRoot}/bin/cucumber" + } + ] +} diff --git a/config/webpack/development.js b/config/webpack/development.js index 42287747d..009652d5c 100644 --- a/config/webpack/development.js +++ b/config/webpack/development.js @@ -2,6 +2,6 @@ const environment = require('./environment'); const config = environment.toWebpackConfig(); // For more information, see https://webpack.js.org/configuration/devtool/#devtool -config.devtool = 'cheap-module-eval-source-map'; +config.devtool = 'eval-source-map'; module.exports = config;