Fixes app.getPath("userData") pointing to the wrong folder. (electron in %appdata%)
The old debugger essentially runs:
.\node_modules\.bin\electron main.js
Which makes userData incorrect and various other things wrong related to app launch.
The new version correctly executes:
.\node_modules\.bin\electron .
Which means when you call app.getPath("userData") it will return the correct folder name, and not 'electron', which is what my app was doing even though the folder was named properly.
- Move the debugging guides for VSCode and node-inspector into separate
files.
- Add instructions for using electron-inspector to the node-inspector
guide.
- Remove note in node-inspector guide about crashing when inspecting
`process` (it was fixed a long time ago:
https://github.com/nodejs/node-v0.x-archive/issues/8205)