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

VS Code Debug Instructions Are Wrong #125

Closed
owo opened this issue May 22, 2023 · 1 comment
Closed

VS Code Debug Instructions Are Wrong #125

owo opened this issue May 22, 2023 · 1 comment

Comments

@owo
Copy link

owo commented May 22, 2023

Frankly, I don't know whether to post this issue on forge or electron-forge-docs, but there's a misunderstanding in both repos.

The instructions for Debugging with VS Code will not work because of the way electron-forge-vscode-nix works.

The issue is with the following line:

    "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron-forge-vscode-nix",

The problem is that ${workspaceFolder}/node_modules/.bin/electron-forge-vscode-nix is a symlink to ${workspaceFolder}/node_modules/@electron-forge/cli/script/vscode.sh and it tries to determine the project directory by referencing it relative to it's own path. Thus, the symlink and the original script will run electron-forge-start in different working directories.

Replacing the above line with the following will work:

    "runtimeExecutable": "${workspaceFolder}/node_modules/@electron-forge/cli/script/vscode.sh",

I'm not sure if the Windows version of this option has this issue.

@erickzhao
Copy link
Member

Fixed in 344b7b3 590831e

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

2 participants