Skip to content

Instantly share code, notes, and snippets.

@thfrei
Last active August 10, 2020 21:07
Show Gist options
  • Save thfrei/90809e68373b8f5731f5695ae2a49fc6 to your computer and use it in GitHub Desktop.
Save thfrei/90809e68373b8f5731f5695ae2a49fc6 to your computer and use it in GitHub Desktop.
trilium vscode node chrome debug launch.json for vscode
{
"version": "0.2.0",
"configurations": [
{
"name": "trilium dev",
"program": "${workspaceFolder}/src/www",
"request": "launch",
"runtimeArgs": ["--inspect","--inspect-port=9229"],
"env": {
"TRILIUM_ENV": "dev",
"TRILIUM_DATA_DIR": "C:\\temp\\trilium-data"
},
"type": "pwa-node"
},
{
"name": "Attach to node",
"request": "attach",
"port": 9229,
"skipFiles": [
"<node_internals>/**"
],
"type": "pwa-node"
},
{
"name": "Attach to Chrome",
"port": 9222,
"request": "attach",
"urlFilter": "http://localhost:8080/*",
"type": "pwa-chrome",
"webRoot": "${workspaceFolder}/src/public"
},
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment