node.js - Electron/VSCode : Cannot connect to runtime process, timeout after 10000 ms - (ECONNREFUSED) -


i've got minimal electron app setup on osx works fine when run via command line i'm unable use visual studio code run in debug mode:

cannot connect runtime process, timeout after 10000 ms - (reason: cannot connect target: connect econnrefused 127.0.0.1:13207). 

my launch.json file looks like:

{     "version": "0.2.0",     "configurations": [         {             "type": "node",             "request": "launch",             "name": "launch program",             "program": "${workspaceroot}/main.js",              "runtimeexecutable": "${workspaceroot}/node_modules/.bin/electron",             "runtimeargs": [                 ".",                 "--enable-logging"             ],             "env": {},             "console": "internalconsole",             "sourcemaps": false         },         {             "name": "attach",             "type": "node",             "request": "attach",             "port": 5858,             "address": "localhost",             "restart": false,             "sourcemaps": false,             "localroot": "${workspaceroot}",             "remoteroot": null         }     ] } 

any appreciated.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -