Attach visual studio debugger to electron app

后端 未结 3 761
梦谈多话
梦谈多话 2020-12-29 07:15

I\'m attempting to debug electron app from visual studio 2017 (and not vscode) from scratch.

I created a console nodejs project, install and save electron. Project s

3条回答
  •  [愿得一人]
    2020-12-29 07:49

    This is actually very easy to do.

    1. Configure your app in Visual Studio like this:

    1. Start your app. Electron will start on a separate terminal but Visual Studio won't be attached to it.

    1. Go to Debug > Attach to process... and enter the Webkit websocket connection type and http://127.0.0.1:5858 as the target.

    2. Your breakpoints are now enabled.

提交回复
热议问题