Skip to content

Instantly share code, notes, and snippets.

@RaschidJFR
Last active December 5, 2021 14:44
Show Gist options
  • Save RaschidJFR/09cfdb07afd3186d66d9242b99832217 to your computer and use it in GitHub Desktop.
Save RaschidJFR/09cfdb07afd3186d66d9242b99832217 to your computer and use it in GitHub Desktop.
VSCode `Launch.json` for debugging Parse Server
{
// 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": "Attach", // Attach to a running node process (with `--inspect` flag)
"port": 9229
},
{
"type": "node",
"request": "launch",
"name": "Build & Launch via NPM", // Run the script `debug` in package.json
"runtimeExecutable": "npm",
"runtimeArgs": [
"run-script",
"debug"
],
"autoAttachChildProcesses": true,
"port": 9229
},
{
"type": "node",
"request": "launch",
"name": "Launch parse-server", // Run the node process directly
"program": "${workspaceFolder}\\node_modules\\parse-server\\bin\\parse-server", // Don't forget to `$ npm link parse-server`,
"args": [
"parse-server-config.json"
],
"outFiles": [
"${workspaceFolder}/build/cloud/**/*.js" // Or whatever output path
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment