<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Windows 10 setup (including VS Code debugging)]]></title><description><![CDATA[<p dir="auto">I have an Intel Compute Stick which runs Windows 10 that I am planning to use for my mirror.  Getting Magic Mirror running was really easy as the manual steps outlined in the <a href="http://README.md" target="_blank" rel="noopener noreferrer nofollow ugc">README.md</a> file are mostly cross-platform.</p>
<p dir="auto">But I wanted to create modules and debug them using VS Code.  There are a couple hurdles there.</p>
<ol>
<li>You can launch Magic Mirror using VS Code.  You will have to create a launch.json file as outlined <a href="http://electron.rocks/debugging-electron-in-vs-code/" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>.  Make sure to read the comments as they are helpful.  I will put my final file in a reply to this.</li>
<li>You may run into an exception: <code>TypeError: Cannot read property 'name' of undefined</code> in <code>MagicMirror\modules\default\updatenotification\node_helper.js:35:43</code>.  The root cause of this is some <code>Error: spawn git ENOENT</code> messages that you may see further up in the log.  I think this is an effort to check GitHub for updates…anyways it seems to do something with git and this error means it can’t find git in your path.  (Basically if you opened a command prompt and typed git it would tell you that it is an unrecognized command.)  Install Git from <a href="http://git-scm.com" target="_blank" rel="noopener noreferrer nofollow ugc">git-scm.com</a> and that should solve it (must restart VS Code though).  The installer has an option about the Windows path–choose to add Git to the path.  I had GitHub Desktop installed and it apparently uses its own portable version of Git which it doesn’t add to the path.</li>
</ol>
<p dir="auto">These should get you a good running setup.  Debugging works for the main code base but doesn’t seem to work for modules.  That is next on my list.</p>
]]></description><link>https://forum.magicmirror.builders/topic/1368/windows-10-setup-including-vs-code-debugging</link><generator>RSS for Node</generator><lastBuildDate>Sat, 16 May 2026 09:04:34 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/1368.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 09 Jan 2017 02:16:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Windows 10 setup (including VS Code debugging) on Thu, 30 Jan 2025 03:05:59 GMT]]></title><description><![CDATA[<p dir="auto">I created a forum account just to say THANK YOU!  I was getting auth errors in the node_helper of my module that I could not trace using the browser side tools.  Debugging the server side with VS Code got it fixed in 5 minutes flat!</p>
]]></description><link>https://forum.magicmirror.builders/post/123583</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/123583</guid><dc:creator><![CDATA[jasong9872]]></dc:creator><pubDate>Thu, 30 Jan 2025 03:05:59 GMT</pubDate></item><item><title><![CDATA[Reply to Windows 10 setup (including VS Code debugging) on Wed, 08 Feb 2017 21:33:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/aaronaxvig" aria-label="Profile: aaronaxvig">@<bdi>aaronaxvig</bdi></a> To run MagicMirror automatically on startup:</p>
<ol>
<li>Create a .bat file and put it in the startup folder (Windows Explorer &gt; type “shell:startup” without quotes in the address bar).</li>
<li>Set the contents of the bat file:</li>
</ol>
<p dir="auto">cd <strong>your MagicMirror Git repository folder</strong><br />
npm start</p>
]]></description><link>https://forum.magicmirror.builders/post/14001</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/14001</guid><dc:creator><![CDATA[aaronaxvig]]></dc:creator><pubDate>Wed, 08 Feb 2017 21:33:06 GMT</pubDate></item><item><title><![CDATA[Reply to Windows 10 setup (including VS Code debugging) on Sat, 04 Feb 2017 23:08:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/aaronaxvig" aria-label="Profile: aaronaxvig">@<bdi>aaronaxvig</bdi></a> If you enable it to working. You can be add into a step in project for help to other users.</p>
]]></description><link>https://forum.magicmirror.builders/post/13634</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/13634</guid><dc:creator><![CDATA[roramirez]]></dc:creator><pubDate>Sat, 04 Feb 2017 23:08:30 GMT</pubDate></item><item><title><![CDATA[Reply to Windows 10 setup (including VS Code debugging) on Sat, 04 Feb 2017 16:27:22 GMT]]></title><description><![CDATA[<p dir="auto">do you know who it works with visual studio 2015?</p>
]]></description><link>https://forum.magicmirror.builders/post/13590</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/13590</guid><dc:creator><![CDATA[schmo90]]></dc:creator><pubDate>Sat, 04 Feb 2017 16:27:22 GMT</pubDate></item><item><title><![CDATA[Reply to Windows 10 setup (including VS Code debugging) on Mon, 09 Jan 2017 02:20:31 GMT]]></title><description><![CDATA[<p dir="auto">My launch.json file:</p>
<pre><code>{
    // 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
        }
    ]
}
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/10676</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/10676</guid><dc:creator><![CDATA[aaronaxvig]]></dc:creator><pubDate>Mon, 09 Jan 2017 02:20:31 GMT</pubDate></item></channel></rss>