NRP Backend Proxy debugging¶
You can debug the NRP Backend Proxy software if you installed the NRP from source.
NRP Backend Proxy is a Node.js application and we offer a way to debug it with VS Code editor, that can be modified for your favourite IDE.
In case you followed source installation instruction, then add the following lines into the file $HBP/nrpBackendProxy/.vscode/launch.json
(create the file if it’s absent):
{
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "node_modules/ts-node/dist/bin.js",
"args": ["app.ts"],
"preLaunchTask": "tsc: build - tsconfig.json",
"outFiles": ["${workspaceFolder}/**/*.js"]
}
]
}
And then debug it as usual in VS Code editor. More information on debugging in VS Code can be found here.
Note
Before starting the NRP, remember to remove cle-proxy
command from cle-start
. The aliases are defined in "$HBP"/user-scripts/nrp_aliases
and sourced in $HOME/.bashrc
.