how to debug electron render part with webstorm which written in typescirpt?

I write the program in typescript you need to start the program by command npm start, not like electron which can start with option --inspect, I don't know how to set the npm option to make the webstorm can attach to it. 

I already check this link but it not start with command `npm start`

https://blog.jetbrains.com/webstorm/2016/05/getting-started-with-electron-in-webstorm/

I can debug the main process now, but I don't know how to debug the render process by attaching it.

2 comments
Comment actions Permalink

You need adding --remote-debugging-port option to your script. What does your start script look like?

0
Comment actions Permalink

In my case, I have enable the devtools.

But when debugging the code , it always Paused in debugger after resuming the debugger.

I don't know whether it will be ok or not if I using the webstorm to debug the electron renderer javascript

 

0

Please sign in to leave a comment.