<?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[debug jscode cli with vscode]]></title><description><![CDATA[<p dir="auto">I created a project based on the example cli at <a href="https://github.com/jscad/OpenJSCAD.org/tree/master/packages/cli" rel="nofollow ugc">Install the CLI as Part of a Project</a>.  My jscad code works and creates the same stl as using the openjscad.xyz web page.</p>
<p dir="auto">I'm having problems with vectorChar and I'd like to use vscode to step through the jscad cli code and debug it.  I need to do this because the vectorChar  code in the repo is very simple but I'm getting crazy results.</p>
<p dir="auto">I tried this launch.json ...</p>
<pre><code>      "type": "pwa-node",
      "request": "launch",
      "name": "Launch Program",
      "skipFiles": [
        "&lt;node_internals&gt;/**"
      ],
      "program": "jscad"
</code></pre>
<p dir="auto">I pretty much knew it wouldn't work because jscode doesn't exist in my app's folder.  Can anyone tell me what I should put in for  "program" to run the jscad cli in debug mode?</p>
]]></description><link>https://openjscad.nodebb.com/topic/344/debug-jscode-cli-with-vscode</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Jul 2026 20:56:23 GMT</lastBuildDate><atom:link href="https://openjscad.nodebb.com/topic/344.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 26 Feb 2022 19:04:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to debug jscode cli with vscode on Tue, 01 Mar 2022 11:54:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mark-hahn" aria-label="Profile: mark-hahn">@<bdi>mark-hahn</bdi></a> super thanks!</p>
<p dir="auto">There’s still a little wizardry going on here. But I’ll try this with VSCODE, and then ask a few more questions.</p>
]]></description><link>https://openjscad.nodebb.com/post/1126</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/1126</guid><dc:creator><![CDATA[z3dev]]></dc:creator><pubDate>Tue, 01 Mar 2022 11:54:32 GMT</pubDate></item><item><title><![CDATA[Reply to debug jscode cli with vscode on Sun, 27 Feb 2022 17:59:09 GMT]]></title><description><![CDATA[<p dir="auto">I should add the steps needed to use vscode to debug.</p>
<ol>
<li>Clone the jscad cli repo</li>
<li>Do an npm install</li>
<li>Create a standard launch profile for node.</li>
</ol>
<p dir="auto">Here is my launch.json file ...</p>
<pre><code> "version": "0.2.0",
  "configurations": [

    {
      "type": "pwa-node",
      "request": "launch",
      "name": "Launch Program",
      "skipFiles": [
        "&lt;node_internals&gt;/**"
      ],
      "program": "node_modules/@jscad/cli/cli.js",
      "args": ["text-gen.js"]
    }
  ]
}
</code></pre>
<p dir="auto">After this I just set a breakpoint in my jscode and launched the debugger.  Worked great.</p>
<p dir="auto">P.S. If anyone is curious I was able to fix my vectorChar problem.  It was in my code but I was only able to find my problem by using the debugger.</p>
]]></description><link>https://openjscad.nodebb.com/post/1125</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/1125</guid><dc:creator><![CDATA[Mark Hahn]]></dc:creator><pubDate>Sun, 27 Feb 2022 17:59:09 GMT</pubDate></item><item><title><![CDATA[Reply to debug jscode cli with vscode on Sun, 27 Feb 2022 11:33:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mark-hahn" aria-label="Profile: mark-hahn">@<bdi>mark-hahn</bdi></a> Super!</p>
<p dir="auto">We often get asked how to use JSCAD inside VSCODE, so please let use know how to setup a project and debug. It would be a HUGE plus for JSCAD to be able to debug designs.</p>
]]></description><link>https://openjscad.nodebb.com/post/1124</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/1124</guid><dc:creator><![CDATA[z3dev]]></dc:creator><pubDate>Sun, 27 Feb 2022 11:33:16 GMT</pubDate></item><item><title><![CDATA[Reply to debug jscode cli with vscode on Sat, 26 Feb 2022 19:44:00 GMT]]></title><description><![CDATA[<p dir="auto">I found the answer to my problem right after posting this.  I tried forever to figure this out before posting.  This seems to happen to me a lot.</p>
<p dir="auto">For lurkers:  The "program" option in the launch file should be "node_modules/@jscad/cli/cli.js"</p>
]]></description><link>https://openjscad.nodebb.com/post/1123</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/1123</guid><dc:creator><![CDATA[Mark Hahn]]></dc:creator><pubDate>Sat, 26 Feb 2022 19:44:00 GMT</pubDate></item></channel></rss>