Created
October 26, 2021 20:17
-
-
Save dkackman/ede780f12df027eebb0cdd0f627a3af3 to your computer and use it in GitHub Desktop.
VSCode launch tasks for chia electron development
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| // 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": [ | |
| { | |
| "name": "Electron: Main Process", | |
| "type": "node", | |
| "request": "launch", | |
| "cwd": "${workspaceFolder}/chia-blockchain-gui", | |
| "runtimeExecutable": "${workspaceFolder}/chia-blockchain-gui/node_modules/.bin/electron", | |
| "windows": { | |
| "runtimeExecutable": "${workspaceFolder}/chia-blockchain-gui/node_modules/.bin/electron.cmd" | |
| }, | |
| "args": [ | |
| "." | |
| ], | |
| "runtimeArgs": [ | |
| "--remote-debugging-port=9223" | |
| ], | |
| "outputCapture": "std", | |
| "console": "integratedTerminal", | |
| "stopOnEntry": false | |
| }, | |
| { | |
| "name": "Electron: Renderer Process", | |
| "type": "chrome", | |
| "request": "attach", | |
| "port": 9223, | |
| "webRoot": "${workspaceFolder}/chia-blockchain-gui", | |
| "timeout": 30000 | |
| } | |
| ], | |
| "compounds": [ | |
| { | |
| "name": "Electron: All", | |
| "configurations": [ | |
| "Electron: Main Process", | |
| "Electron: Renderer Process" | |
| ] | |
| } | |
| ] | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
.vscodefolder in the root of the chia repo (NOT the chia-blockchain-gui folder. You'll be working from the main repo)venvElectron: Allconfiguration from the VSCode Debug panel.venvand start the electron app"stopOnEntry": falseto true, VSCode will break incli.jsand then you can continue from thereThis assumes that
${workspaceFolder}is the main chia project. If not modify the paths as appropriate.Make sure to have the python venv setup and VSCode all set to use it.
Electron: Main Processlaunches the main electron process and the line"console": "integratedTerminal"allows VSCode to enter the venv before doing so. If you want to debug the main process code changestopOnEntrytotrue.Electron: Renderer Processattaches to electron's chrome UI instance.Electron: Allstart both, including entering the venv for debugging the renderer.