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

How to debug electron renderer in WebStorm #130

Closed
4 tasks done
lionelhorn opened this issue Mar 10, 2023 · 5 comments
Closed
4 tasks done

How to debug electron renderer in WebStorm #130

lionelhorn opened this issue Mar 10, 2023 · 5 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@lionelhorn
Copy link

Describe the bug

Hello,

I've seen #19 but it's related to debugging the main process.

I'm trying to debug the renderer process from webstorm.

I've used pnpm create @quick-start/electron to scaffold my project.
I managed to set breakpoint in the node side of the application and it works properly from within webstorm with the following configuration.
image

For instance on
image

But i'm not able to get breakpoints to break on for instance.
image

How can it be configured?

Electron-Vite Version

1.0.17

Electron Version

21.3.3

Vite Version

4.0.4

Validations

@lionelhorn lionelhorn added the bug Something isn't working label Mar 10, 2023
@alex8088 alex8088 added enhancement New feature or request good first issue Good for newcomers and removed bug Something isn't working labels Mar 10, 2023
@alex8088
Copy link
Owner

@lionelhorn
Renderer process debugging is currently not supported, but a solution has been found and will be supported in the next version. It won't take long.

@alex8088
Copy link
Owner

new ver 1.0.20 is out! check out https://evite.netlify.app/guide/debugging.html#webstorm

@vacnex
Copy link

vacnex commented Mar 13, 2023

@alex8088
Just see new launch.json, if i have sub folder in renderer so i need create new config with diff port and path to view for new render process, then put new one to configurations in compound?
correct me if i wrong

@alex8088
Copy link
Owner

Usually specifying the root of the renderer process code is fine.

@alex8088
Copy link
Owner

webstorm-electron-vite-debugging.mp4

@alex8088 alex8088 pinned this issue Mar 15, 2023
@alex8088 alex8088 changed the title How to debug electron renderer How to debug electron renderer in WebStorm Mar 15, 2023
@alex8088 alex8088 unpinned this issue May 15, 2023
@alex8088 alex8088 mentioned this issue Oct 24, 2023
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants