paulsutherland / Polyonic

An Electron Ionic application shell for creating Web Apps, Progressive Mobile Web Apps, Native Mobile Apps and Desktop Apps.
209 stars 44 forks source link

Main Process Debugging #34

Closed rlaurente closed 5 years ago

rlaurente commented 5 years ago

I just want to ask is there a way to debug main process ?

Thanks

paulsutherland commented 5 years ago

@rlaurente

Yes there is, but the npm script was missing.

I have just pushed an update, so if you:

git pull

then

npm run electron:dev:debug

You can drop a debugger statement in the electron.js file and debug the main process. It will open the debugger in chrome dev tools. You may want to look at the Chrome NiM add-on.

Thanks,

Paul

paulsutherland commented 5 years ago

@rlaurente

If that resolves debugging the main process, can you please let me know and I will close the issue.

Cheers...

Paul