Hi everybody!
I’m very new to the MagicMirror Project but wanted to develop my own Module, since I got everything running on my Pi :-)
Now I’d like to use Visual Studio Code to debug existing Modules and then develop my own module. Therefore I need a bit of assistance:
I copied the MagicMirror Files to a folder and was able to run “npm install” with Power Shell and used this launch.json which I found in the forum to get it run in electron brwoser:
{
// Use IntelliSense to learn about possible Node.js debug attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}\\js\\electron.js",
"stopOnEntry": false,
"args": [],
"cwd": "${workspaceRoot}",
"runtimeExecutable": "${workspaceRoot}\\node_modules\\.bin\\electron",
"runtimeArgs": [
".",
"--enable-logging"
],
"env": {},
"console": "integratedTerminal",
"sourceMaps": false,
"outDir": null
},
{
"name": "Attach",
"type": "node",
"request": "attach",
"port": 5858,
"sourceMaps": false,
"outDir": null
}
]
}
Do I need do do anything else because if I add only the clock module it says that the node helper is missing for that module…
No helper found for module: clock.
Can anyone give me some kind of how to do this?
Thank you so much!
Victor