TL;DR: You need to follow the server (electron) client (VS code debugger) approach. Be aware of OS specifics!
So far, my approach towards development/debugging would be to write some code, test it, rewrite, test... all with a bunch of console.log() statements. That's not efficient at