Rendering process

Developer Toolbar

on the startup application interface, find view -> toggle developer tool in the menu.
Click open: Console Tools

主进程

  1. use VSCode to debug

in the menu bar, click Run-> Add configuration->Node.js

  1. {
  2. "version": "0.2.0",
  3. "configurations": [
  4. {
  5. "name": "EE-local",
  6. "type": "node",
  7. "request": "launch",
  8. "cwd": "${workspaceFolder}",
  9. "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron",
  10. "windows": {
  11. "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron.cmd"
  12. },
  13. "args": [
  14. ".",
  15. "--env=local"
  16. ]
  17. }
  18. ]
  19. }

run debugging
image.png