...
- In your genie session, use command PJSMYIP. This changes your session to point to your local Profound.js server. For more details, click here.
- 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.
- 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 | ||
---|---|---|
| ||
{ "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.
...