electron-userland / electron-userland/electron-webpack

debug with webstorm / phpstorm

Open
#403 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
902
Forks
168
PR merge metrics
No merged PRs in 30d

Description

Hello,

I try your quickstart, and try to start the project ...

But :

It seems my phpstorm already use the port 5858, so I modify dev-runner.js to change to a random port ( like 7233 ), and it's start .

---

I also follow this tutorial https://blog.jetbrains.com/webstorm/2016/05/getting-started-with-electron-in-webstorm/ , replacing the electron executable by the electron-webpack executable, and adding `dev` . in the Node parameters

![image](https://user-images.githubusercontent.com/5489218/92044958-a9958780-ed7f-11ea-908a-56f96796292e.png)

So when starting this configuration, it will produce a command like :
```
~\repos\decky\electron-webpack-quick-start\node_modules\.bin\electron-webpack.cmd --debug-brk=14033 --expose_debug_as=v8debug dev .
```

---

So my questions are, did I miss something to debug it ? ( I wan't to add breakpoints for "main" process in phpstorm, and use devtools for the "renderer", can I ? else how to debug the main ? ) .

How to configure my phpstorm ? or do I need to update the dev runner, to take the arguments from the argv and add them to the args passed to electron ?

Regards

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.