Can Visual Studio Code be configured to launch electron

前端 未结 5 1591
死守一世寂寞
死守一世寂寞 2020-12-23 23:26

Since Visual Studio Code was created using Electron, I\'m guessing that launch.json might be configured to properly launch an app using Electron. But I\'ve not figured out

5条回答
  •  粉色の甜心
    2020-12-23 23:46

    In theory the following should work: Specify the electron.exe as the "runtimeExecutable" (since it replaces the node runtime). The electron program ("CrawlSpace_Electron\") becomes the "program". VSCode automatically passes a "--debug-brk" or "--debug" to electron.exe. In practice VSCode does not yet support this setup because the preview version of VSCode tries to verify that the "program" attribute is a file that exists on disk. But for electron the "program" must be a directory. I have created a bug on our side and will make sure it’s fixed with the next release.

提交回复
热议问题