JSCAD User Group

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. Mark Hahn
    3. Best
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 3
    • Best 2
    • Controversial 0
    • Groups 0

    Best posts made by Mark Hahn

    • RE: debug jscode cli with vscode

      I should add the steps needed to use vscode to debug.

      1. Clone the jscad cli repo
      2. Do an npm install
      3. 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.

      posted in General Discussions
      Mark Hahn
      Mark Hahn
    • RE: debug jscode cli with vscode

      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.

      For lurkers: The "program" option in the launch file should be "node_modules/@jscad/cli/cli.js"

      posted in General Discussions
      Mark Hahn
      Mark Hahn