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`

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

Comment actions Permalink

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

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



Please sign in to leave a comment.