I should add the steps needed to use vscode to debug.
- Clone the jscad cli repo
- Do an npm install
- Create a standard launch profile for node.
Here is my launch.json file ...
"version": "0.2.0",
"configurations": [
{
"type": "pwa-node",
"request": "launch",
"name": "Launch Program",
"skipFiles": [
"<node_internals>/**"
],
"program": "node_modules/@jscad/cli/cli.js",
"args": ["text-gen.js"]
}
]
}
After this I just set a breakpoint in my jscode and launched the debugger. Worked great.
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.