Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

template=vite how debug #198

Open
an78mK89fy opened this issue Oct 3, 2024 · 0 comments
Open

template=vite how debug #198

an78mK89fy opened this issue Oct 3, 2024 · 0 comments

Comments

@an78mK89fy
Copy link

{
  "configurations": [
    {
      "type": "node",
      "request": "launch",
      "name": "Electron Main",
      "runtimeExecutable": "${workspaceFolder}/node_modules/@electron-forge/cli/script/vscode.sh",
      "windows": {
        "runtimeExecutable": "${workspaceFolder}/node_modules/@electron-forge/cli/script/vscode.cmd"
      },
      // runtimeArgs will be passed directly to your Electron application
      "runtimeArgs": [
        "foo",
        "bar"
      ],
      "cwd": "${workspaceFolder}",
      "console": "integratedTerminal"
    }
  ]
}

This content of the official website is only valid if you don't use the build tool, if you use the template of vite, it prompts that it is not bound, and you can't find the relevant instructions on the official website of forge and vite, who can help me.


vscode tip:

✅ This breakpoint was initially set in:

C:\Users\**\Documents\_Visual Studio Code\demo\src\main.js line 7 column 1

❓ We couldn't find a corresponding source location, but found some other files with the same name:

c:/Users/**/Documents/_Visual Studio Code/demo/src/node_modules/esbuild/lib/main.js
If this is the same file, you may need to adjust your build tool to correct the paths.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant