Debugging in VSCode

Summary:
This diff enables debugging in VSCode. Debugging works for both Flipper core and plugin code. To start debugging:
1. yarn start
2. Go to "Debug and Run" tab in VSCode, select task "Attach to Running Renderer" and launch it (or just press F5).
{F227135377}
3. Debugger will be attached and all the breakpoints set in VSCode will be hit.

Reviewed By: passy

Differential Revision: D19578566

fbshipit-source-id: 609766471ad196a2ee8d4086ddb84b7af4ef05ef
This commit is contained in:
Anton Nikolaev
2020-01-27 06:13:03 -08:00
committed by Facebook Github Bot
parent ac8bd8638a
commit 68510b53bf
2 changed files with 13 additions and 1 deletions

3
.vscode/launch.json vendored
View File

@@ -6,7 +6,8 @@
"type": "chrome",
"request": "attach",
"port": 9222,
"webRoot": "${workspaceRoot}"
"webRoot": "/",
"url": "http://localhost:3000/index.dev.html"
},
{
"type": "node",