Skip to Content
Oct 16, 2020 at 12:06 PM

SAP Business Application Studio CAP project (node.js) debug issue


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:
  "version": "0.2.0",
  "configurations": [
      "command": "cds run --with-mocks --in-memory?",
      "name": "cds run",
      "request": "launch",
      "type": "node-terminal",
      "skipFiles": [

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 --


debugbas.png (145.6 kB)
debugbascap.png (152.0 kB)