Skip to content

[Feature Request] Attach debugger to backend on runtime #550

@a7m-1st

Description

@a7m-1st

Motivation

  • Debugging is the ultimate tool to quickly review new PRs and enhancements
  • Enables to pause the backend at anytime to enhance components while frontend is running separately
  • Dissect the event loop at any point
  • Detachable debugger instance

Solution

  • Currently supports only VScode or VScode based IDEs

Alternatives

No response

Additional context

Current vscode configurations solely dubug the render processes;

{
      "name": "Debug Main Process",
      "type": "node",
      "request": "launch",
      "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron",
      "windows": {
        "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd"
      },
      "runtimeArgs": [
        "--no-sandbox",
        "--remote-debugging-port=9229",
        "."
      ],
      "envFile": "${workspaceFolder}/.vscode/.debug.env",
      "console": "integratedTerminal"
    },
    {
      "name": "Debug Renderer Process",
      "port": 9229,
      "request": "attach",
      "type": "chrome",
      "timeout": 60000,
      "skipFiles": [
        "<node_internals>/**",
        "${workspaceRoot}/node_modules/**",
        "${workspaceRoot}/dist-electron/**",
        // Skip files in host(VITE_DEV_SERVER_URL)
        "http://127.0.0.1:7777/**"
      ]
    },

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions