Skip to content

Instantly share code, notes, and snippets.

@tmkasun
Last active March 30, 2021 02:40
Show Gist options
  • Save tmkasun/d57ba31a44eb611c252843cdcaf58885 to your computer and use it in GitHub Desktop.
Save tmkasun/d57ba31a44eb611c252843cdcaf58885 to your computer and use it in GitHub Desktop.
vscode launch 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": "node",
"request": "attach",
"name": "DebugWebpack",
"address": "localhost",
"port": 9229,
"localRoot": "${workspaceFolder}",
"remoteRoot": "Absolute path to the remote directory containing the program"
},
{
"type": "node",
"request": "launch",
"name": "Jest All",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": [
"--runInBand"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true,
"windows": {
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
}
},
{
"type": "node",
"request": "launch",
"name": "WebPack Devserver",
"program": "${workspaceFolder}/node_modules/webpack-dev-server/bin/webpack-dev-server.js",
"args": [
"--compress",
"--hot-only",
"--https",
"--port",
"8081",
"--mode",
"development",
],
"env": {
"NODE_ENV": "analysis"
},
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true,
},
{
"type": "node",
"request": "launch",
"name": "Jest Current File",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": [
"${relativeFile}",
"--config",
"jest.config.js",
"--detectOpenHandles"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true,
"windows": {
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
}
},
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "https://localhost:8081/publisher/",
"webRoot": "${workspaceFolder}/source",
"sourceMaps": true,
"trace": true,
"sourceMapPathOverrides": {
"webpack:///./source/*": "${webRoot}/*"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment