Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. In your genie session, use command PJSMYIP. This changes your session to point to your local Profound.js server. For more details, click here.
  2. Start Now, start your local Profound.js server. Change To do this, change your current directory to your Profound.js installation directory and use 'node start.js' to start the Profound.js server.
  3. Lastly, call your program from Genie: CALL PRODAPP. This will redirect the call to your local Profound.js server, where the JavaScript is run.

...

You will also want to create a new debug configuration, which looks would look like this:

Code Block
languagejavascript
        {
            "name": "Launch",
            "type": "node",
            "request": "launch",
            "program": "${workspaceRoot}/start.js",
            "stopOnEntry": false,
            "args": [],
            "cwd": "${workspaceRoot}",
            "runtimeArgs": [
                "--nolazy"
            ],
            "env": {
                "NODE_ENV": "development"
            },
            "console": "internalConsole",
            "sourceMaps": false
        }

This mean. specifies that when you start debugging, it will launch the Profound.js inside of your VS Code instance. This allows you to put breakpoints into Profound.js modules.

...