Can I attach Chrome Debugger from VSCode into my electron application

I wanted to attach chrome debugger into my electron application using VSCode, but the issue is the port for my application changes every time I debug my application. Since the Chrome Debugger tool needs a port to attach to in the launch.json file it wont attach to my chrome instance. I searched for ways to explicitly define port number, but only Nodejs specific information was available.