Files
flipper/desktop/.vscode/launch.json
Michel Weststrate 73c6e8ee05 Make flipper server debuggable
Summary: This diffs adds debugging support to flipper server, by adding VSCode config for it

Reviewed By: timur-valiev, aigoncharov

Differential Revision: D32982874

fbshipit-source-id: 8e187ad05a05566a598db04b97e8b08e3de7e835
2021-12-13 05:48:16 -08:00

58 lines
1.3 KiB
JSON

{
"version": "0.2.0",
"configurations": [
{
"name": "Attach to Flipper Server",
"type": "node",
"request": "attach",
"port": 9229,
"sourceMaps": true,
"skipFiles": ["<node_internals>/**"]
},
{
"name": "Attach to Running Renderer",
"type": "chrome",
"request": "attach",
"port": 9222,
"webRoot": "/",
"url": "http://localhost:3000/index.dev.html"
},
{
"name": "Attach to Running Main",
"type": "node",
"request": "attach",
"port": 9229,
"sourceMaps": true
},
{
"type": "node",
"request": "launch",
"name": "Launch Current Jest Suite",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": ["--runInBand", "${relativeFile}"],
"env": {
"TZ": "Pacific/Pohnpei"
}
},
{
"type": "node",
"cwd": "${fileDirname}",
"request": "launch",
"name": "Launch Current Script",
"args": ["${file}"],
"env": {
"TS_NODE_FILES": "true"
},
"protocol": "inspector",
"internalConsoleOptions": "openOnSessionStart",
"runtimeArgs": ["--require", "ts-node/register"]
}
],
"compounds": [
{
"name": "Attach to All",
"configurations": ["Attach to Running Main", "Attach to Running Renderer"]
}
]
}