How to debug Electron Frontend?

I try run the debug command: “Start Browser Backend” and “Attach to Electron Frontend”, but Can’t debug the Electron Frontend

[original thread by oyo]

Please view the following documentation on how to successfully debug the electron front-end:

I personally use the developer tools when debugging the electron front-end as I find it easier (chrome devtools).