78 lines
2.6 KiB
JSON
78 lines
2.6 KiB
JSON
{
|
|
// 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": [
|
|
{
|
|
// launches Chrome and allows debugging from vscode.
|
|
// you can set breakpoints in .tsx files, etc.
|
|
"type": "pwa-chrome",
|
|
"request": "launch",
|
|
"name": "Debug in Chrome",
|
|
"url": "http://localhost:8000",
|
|
"webRoot": "${workspaceFolder}"
|
|
},
|
|
{
|
|
// for debugging the gatsby dev server
|
|
"name": "Gatsby develop",
|
|
"type": "node",
|
|
"request": "launch",
|
|
"protocol": "inspector",
|
|
"program": "${workspaceRoot}/node_modules/gatsby/dist/bin/gatsby",
|
|
"preLaunchTask": {"type": "npm", "script": "clean"},
|
|
"args": ["develop"],
|
|
"stopOnEntry": false,
|
|
"runtimeArgs": ["--nolazy", "--max-http-header-size=16385"],
|
|
"sourceMaps": false,
|
|
"env": {
|
|
"NODE_OPTIONS": "-r esm"
|
|
}
|
|
},
|
|
{
|
|
// for debugging gatsby via it's 'debug' command
|
|
"name": "Gatsby debug",
|
|
"type": "node",
|
|
"request": "launch",
|
|
"protocol": "inspector",
|
|
"program": "${workspaceRoot}/node_modules/gatsby/dist/bin/gatsby",
|
|
"preLaunchTask": {"type": "npm", "script": "clean"},
|
|
"args": ["debug"],
|
|
"stopOnEntry": false,
|
|
"runtimeArgs": ["--nolazy", "--inspect-brk"],
|
|
"sourceMaps": false,
|
|
"env": {
|
|
"NODE_OPTIONS": "-r esm"
|
|
}
|
|
},
|
|
{
|
|
// for debugging the gatsby build process
|
|
"name": "Gatsby build",
|
|
"type": "node",
|
|
"request": "launch",
|
|
"protocol": "inspector",
|
|
"program": "${workspaceRoot}/node_modules/gatsby/dist/bin/gatsby",
|
|
"args": ["build"],
|
|
"stopOnEntry": false,
|
|
"sourceMaps": false,
|
|
"env": {
|
|
"NODE_OPTIONS": "-r esm"
|
|
}
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "translate.ts",
|
|
"runtimeArgs": [
|
|
"-r",
|
|
"ts-node/register"
|
|
],
|
|
"args": [
|
|
"${workspaceFolder}/translate.ts"
|
|
],
|
|
"env": {
|
|
"NODE_OPTIONS": "-r esm"
|
|
}
|
|
}
|
|
]
|
|
} |