Skip to content

Instantly share code, notes, and snippets.

@andrewmcodes
Created June 23, 2021 05:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewmcodes/3c15367069b64b03a70f9643cdd3b785 to your computer and use it in GitHub Desktop.
Save andrewmcodes/3c15367069b64b03a70f9643cdd3b785 to your computer and use it in GitHub Desktop.
vscode-launch-example
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Application",
"type": "chrome",
"preLaunchTask": "Start Dev",
"postDebugTask": "Terminate All Tasks",
"request": "launch",
"url": "http://localhost:8081",
"sourceMapPathOverrides":{
"sources://src/*": "${workspaceFolder}/src/*"
},
},
{
"name": "Debug Dev Build Process",
"type": "node",
"request": "launch",
"runtimeExecutable": "npm",
"sourceMaps": true,
"console": "integratedTerminal",
"trace": "all",
"runtimeArgs": [
"run-script",
"dev"
],
"port": 5858,
"serverReadyAction": {
"action": "debugWithChrome",
"pattern": "http:\/\/localhost:([0-9]+).*",
"uriFormat": "http://localhost:%s"
}
},
{
"name": "Debug Tests",
"type": "node",
"request": "launch",
"runtimeExecutable": "npm",
"sourceMaps": true,
"console": "integratedTerminal",
"trace": "all",
"runtimeArgs": [
"run-script",
"test"
],
"port": 5859
},
{
"name": "Debug Build Process",
"type": "node",
"request": "launch",
"runtimeExecutable": "npm",
"sourceMaps": true,
"console": "integratedTerminal",
"trace": "all",
"runtimeArgs": [
"run-script",
"build"
],
"port": 5859
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment