on ‎2020 Oct 16 1:06 PM
Debugger does not get auto-attach to the running node server, so I am not able to stop at the breakpoint set in server.js file. I used with a fresh project also by 'cds init ..".
The default launch.json file has error as shown below.
1. 'command is not allowed'
2. type node-terminal is not a recognized debug-type.
//launch.json file:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"command": "cds run --with-mocks --in-memory?",
"name": "cds run",
"request": "launch",
"type": "node-terminal",
"skipFiles": [
"<node_internals>/**"
]
}
]
}
CDS v output below:
user: my-test $ cds v
@sap/cds: 4.1.9
@sap/cds-compiler: 1.39.0
@sap/cds-dk: 3.0.0
@sap/cds-foss: 2.0.0
@sap/cds-reflect: 2.13.0
@sap/cds-runtime: 2.3.0
Node.js: v10.22.1
home: /home/user/.node_modules_global/lib/node_modules/@sap/cds-dk/node_modules/@sap/cds
my-test: 1.0.0
undefined: -- missing --
Request clarification before answering.
Hi,
You can create a CAP Node run configuration via the Run Configurations view, and debug your application using it.
See https://developers.sap.com/tutorials/appstudio-cap-app.html Step 6.
Thanks,
Liat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.